diff options
author | 2024-01-24 15:19:33 -0300 | |
---|---|---|
committer | 2024-01-25 16:38:16 -0800 | |
commit | 8981a85e1ba792f1de035cf98ea3fd8592d7ffbd (patch) | |
tree | a987bef9a33fc192f97c08e09af2d473ae2ba961 /tools | |
parent | selftests: tc-testing: enable all tdc tests (diff) | |
download | linux-8981a85e1ba792f1de035cf98ea3fd8592d7ffbd.tar.gz linux-8981a85e1ba792f1de035cf98ea3fd8592d7ffbd.tar.bz2 linux-8981a85e1ba792f1de035cf98ea3fd8592d7ffbd.zip |
selftests: tc-testing: return fail if a test fails in setup/teardown
As of today tests throwing exceptions in setup/teardown phase are
treated as skipped but they should really be failures.
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Davide Caratti <dcaratti@redhat.com>
Link: https://lore.kernel.org/r/20240124181933.75724-6-pctammela@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/tc-testing/tdc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py index caeacc691587..ee349187636f 100755 --- a/tools/testing/selftests/tc-testing/tdc.py +++ b/tools/testing/selftests/tc-testing/tdc.py @@ -541,7 +541,7 @@ def test_runner(pm, args, filtered_tests): message = pmtf.message output = pmtf.output res = TestResult(tidx['id'], tidx['name']) - res.set_result(ResultState.skip) + res.set_result(ResultState.fail) res.set_errormsg(pmtf.message) res.set_failmsg(pmtf.output) tsr.add_resultdata(res) |