Skip to content

Commit 470ade7

Browse files
committed
break quickly when tags are fine
1 parent 3b66da5 commit 470ade7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def fun():
161161
# if we're re-tagging a test without tags, all passed
162162
with open(tagfile, "w") as f:
163163
pass
164+
break
164165
elif p.returncode == 0:
165166
# we ran the tagged tests and they were fine
166167
break
@@ -199,5 +200,6 @@ def get_pass_name(funcname, classname):
199200
if not passing_tests:
200201
os.unlink(tagfile)
201202
else:
202-
# we tried a second time and failed, so our tags don't work for some reason
203+
# we tried the last time and failed, so our tags don't work for
204+
# some reason
203205
os.unlink(tagfile)

0 commit comments

Comments
 (0)