From 33177d698ef37dd8924c02220650a0b5d9e7fcd4 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Fri, 30 Nov 2018 14:17:20 +0100 Subject: 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 --- test/run_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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() -- cgit 1.2.3-korg