summaryrefslogtreecommitdiffstats
path: root/test/run_tests.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-11-30 14:17:20 +0100
committerDamjan Marion <dmarion@me.com>2018-11-30 17:01:59 +0000
commit33177d698ef37dd8924c02220650a0b5d9e7fcd4 (patch)
tree85a18dc0c6ef036b8c1e4b6c4e76ed0cc9eb9865 /test/run_tests.py
parent774356ad5a5660cad99b6d88e0d84f657a636a55 (diff)
make test: print TEST= values for failed tests
This prints the format strings required to rerun the failed test next to the failures. Change-Id: I973d8ae025f026129826356bce265b1e70086d2f Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/run_tests.py')
-rw-r--r--test/run_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/run_tests.py b/test/run_tests.py
index 0978da0730c..310cdcf23a3 100644
--- a/test/run_tests.py
+++ b/test/run_tests.py
@@ -612,8 +612,8 @@ class AllResults(dict):
print(' Testcase name: {}'.format(
colorize(new_testcase_name, RED)))
old_testcase_name = new_testcase_name
- print(' FAILURE: {}'.format(
- colorize(test_name, RED)))
+ print(' FAILURE: {} [{}]'.format(
+ colorize(test_name, RED), failed_test_id))
for failed_test_id in errored_testcase_ids:
new_testcase_name, test_name = \
result.get_testcase_names(failed_test_id)
@@ -621,8 +621,8 @@ class AllResults(dict):
print(' Testcase name: {}'.format(
colorize(new_testcase_name, RED)))
old_testcase_name = new_testcase_name
- print(' ERROR: {}'.format(
- colorize(test_name, RED)))
+ print(' ERROR: {} [{}]'.format(
+ colorize(test_name, RED), failed_test_id))
if len(self.testsuites_no_tests_run) > 0:
print('TESTCASES WHERE NO TESTS WERE SUCCESSFULLY EXECUTED:')
tc_classes = set()