Show More
@@ -768,13 +768,18 b' def runone(options, test):' | |||
|
768 | 768 | True -> passed |
|
769 | 769 | False -> failed''' |
|
770 | 770 | |
|
771 | global results, iolock | |
|
771 | global results, resultslock, iolock | |
|
772 | 772 | |
|
773 | 773 | testpath = os.path.join(TESTDIR, test) |
|
774 | 774 | |
|
775 | def result(l, e): | |
|
776 | resultslock.acquire() | |
|
777 | results[l].append(e) | |
|
778 | resultslock.release() | |
|
779 | ||
|
775 | 780 | def skip(msg): |
|
776 | 781 | if not options.verbose: |
|
777 |
result |
|
|
782 | result('s', (test, msg)) | |
|
778 | 783 | else: |
|
779 | 784 | iolock.acquire() |
|
780 | 785 | print "\nSkipping %s: %s" % (testpath, msg) |
@@ -797,15 +802,15 b' def runone(options, test):' | |||
|
797 | 802 | rename(testpath + ".err", testpath) |
|
798 | 803 | else: |
|
799 | 804 | rename(testpath + ".err", testpath + ".out") |
|
800 |
|
|
|
805 | result('p', test) | |
|
801 | 806 | return |
|
802 |
result |
|
|
807 | result('f', (test, msg)) | |
|
803 | 808 | |
|
804 | 809 | def success(): |
|
805 |
result |
|
|
810 | result('p', test) | |
|
806 | 811 | |
|
807 | 812 | def ignore(msg): |
|
808 |
result |
|
|
813 | result('i', (test, msg)) | |
|
809 | 814 | |
|
810 | 815 | if (os.path.basename(test).startswith("test-") and '~' not in test and |
|
811 | 816 | ('.' not in test or test.endswith('.py') or |
@@ -1118,6 +1123,7 b' def runchildren(options, tests):' | |||
|
1118 | 1123 | sys.exit(failures != 0) |
|
1119 | 1124 | |
|
1120 | 1125 | results = dict(p=[], f=[], s=[], i=[]) |
|
1126 | resultslock = threading.Lock() | |
|
1121 | 1127 | times = [] |
|
1122 | 1128 | iolock = threading.Lock() |
|
1123 | 1129 |
General Comments 0
You need to be logged in to leave comments.
Login now