diff mbox series

[net-next,v2,5/5] selftests: tc-testing: return fail if a test fails in setup/teardown

Message ID 20240124181933.75724-6-pctammela@mojatatu.com
State Accepted
Commit 8981a85e1ba792f1de035cf98ea3fd8592d7ffbd
Headers show
Series selftests: tc-testing: misc changes for tdc | expand

Commit Message

Pedro Tammela Jan. 24, 2024, 6:19 p.m. UTC
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>
---
 tools/testing/selftests/tc-testing/tdc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)