Skip to content

Commit d3c56e1

Browse files
committed
general: small fix to run.
1 parent 6960a1a commit d3c56e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests-full/run

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_file(file_path, test_dir):
127127
print_if(ps, '%s.%s' % (bcolors.OKGREEN if completed.returncode == 0 else bcolors.FAIL, bcolors.ENDC), end = '', flush = True)
128128

129129
if completed.returncode != 0:
130-
failed_tests.append(os.path.relpath(file_path, test_dir))
130+
failed_tests.append(file_path)
131131
print('\n%s%s-- Failed: %s:%s' % (bcolors.FAIL, bcolors.BOLD, os.path.relpath(file_path, test_dir), bcolors.ENDC))
132132
print('%s * Step `%s` failed: %s%s' % (bcolors.FAIL, step['name'], command, bcolors.ENDC))
133133
if pt:
@@ -191,7 +191,7 @@ if __name__ == '__main__':
191191
if len(failed_tests) != 0:
192192
print('\n%s%s-- Some tests failed:' % (bcolors.FAIL, bcolors.BOLD))
193193
for failed in failed_tests:
194-
print(' * %s' % failed)
194+
print(' * %s' % os.path.relpath(failed, test_dir))
195195
print(bcolors.ENDC)
196196

197197
print('%s%sPassed%s: %d / %d%s' % (bcolors.BOLD, bcolors.OKGREEN, bcolors.ENDC + bcolors.BOLD, passed_count, passed_count + len(failed_tests), bcolors.ENDC))

0 commit comments

Comments
 (0)