File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -225,18 +225,22 @@ def main():
225
225
print ("*stderr*" )
226
226
print (p .stderr )
227
227
228
- passing_tests = []
228
+ passing_tests = set ()
229
+ failing_tests = set ()
229
230
230
231
# n.b.: we add a '*' in the front, so that unittests doesn't add
231
232
# its own asterisks, because now this is already a pattern
232
233
for funcname , classname , result in parse_unittest_output (p .stderr ):
233
234
# We consider skipped tests as passing in order to avoid a situation where a Linux run
234
235
# untags a Darwin-only test and vice versa
236
+ pattern = f"*{ classname } .{ funcname } "
235
237
if result == 'ok' or result .startswith ('skipped' ):
236
- passing_tests .append (f"*{ classname } .{ funcname } " )
238
+ passing_tests .add (pattern )
239
+ else :
240
+ failing_tests .add (pattern )
237
241
238
242
with open (tagfile , "w" ) as f :
239
- for passing_test in sorted (passing_tests ):
243
+ for passing_test in sorted (passing_tests - failing_tests ):
240
244
f .write (passing_test )
241
245
f .write ("\n " )
242
246
if not passing_tests :
You can’t perform that action at this time.
0 commit comments