Skip to content

Commit 4d55ce4

Browse files
committed
run retagging with svm so it's a bit faster
1 parent 420ac79 commit 4d55ce4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ def fun():
100100
else:
101101
glob_pattern = os.path.join(os.path.dirname(test.__file__), "test_*.py")
102102

103-
for testfile in glob.glob(glob_pattern):
103+
testfiles = glob.glob(glob_pattern)
104+
for idx, testfile in enumerate(testfiles):
104105
testfile_stem = os.path.splitext(os.path.basename(testfile))[0]
105106
testmod = "test." + testfile_stem
106107
cmd = ["/usr/bin/timeout", "-s", "9", "60"] + executable + ["-m"]
107108
tagfile = os.path.join(TAGS_DIR, testfile_stem + ".txt")
108109
test_selectors = working_selectors(tagfile)
109110

110-
print("Testing ", testmod)
111+
print("[%d/%d] Testing %s" %(idx, len(testfiles), testmod))
111112
cmd += ["unittest", "-v"]
112113
for selector in test_selectors:
113114
cmd += ["-k", selector]

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _python_graalvm_launcher(args):
285285
mx.run_mx(dy + ["build"])
286286
out = mx.OutputCapture()
287287
mx.run_mx(dy + ["graalvm-home"], out=mx.TeeOutputCapture(out))
288-
launcher = os.path.join(out.data.strip(), "bin", "graalpython")
288+
launcher = os.path.join(out.data.strip(), "bin", "graalpython").split("\n")[-1].strip()
289289
mx.log(launcher)
290290
if args:
291291
mx.run([launcher] + args)

0 commit comments

Comments
 (0)