2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Really start the last failed test as soon as possible.

[SVN r17568]
This commit is contained in:
Vladimir Prus
2003-02-21 07:49:14 +00:00
parent eb1b5407d0
commit fbebf94cec
2 changed files with 10 additions and 2 deletions

View File

@@ -26,13 +26,17 @@ def run_tests(critical_tests, other_tests):
other_tests = reorder_tests(other_tests, last_failed)
all_tests = critical_tests + other_tests
invocation_dir = os.getcwd()
for i in all_tests:
print ("%-25s : " %(i)),
try:
__import__(i)
except:
print "FAILED"
open('test_results.txt', 'w').write(i)
f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w')
f.write(i)
f.close()
raise
print "PASSED"
# Erase the file on success

View File

@@ -26,13 +26,17 @@ def run_tests(critical_tests, other_tests):
other_tests = reorder_tests(other_tests, last_failed)
all_tests = critical_tests + other_tests
invocation_dir = os.getcwd()
for i in all_tests:
print ("%-25s : " %(i)),
try:
__import__(i)
except:
print "FAILED"
open('test_results.txt', 'w').write(i)
f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w')
f.write(i)
f.close()
raise
print "PASSED"
# Erase the file on success