Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pedro Tammela and committed by
Jakub Kicinski
8981a85e d17d0e33

+1 -1
+1 -1
tools/testing/selftests/tc-testing/tdc.py
··· 541 541 message = pmtf.message 542 542 output = pmtf.output 543 543 res = TestResult(tidx['id'], tidx['name']) 544 - res.set_result(ResultState.skip) 544 + res.set_result(ResultState.fail) 545 545 res.set_errormsg(pmtf.message) 546 546 res.set_failmsg(pmtf.output) 547 547 tsr.add_resultdata(res)