Skip to content

Commit 6a91e50

Browse files
committed
kill on timeout
1 parent 5238e34 commit 6a91e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ def fun():
103103
testmod = "test.%s" % os.path.splitext(os.path.basename(testfile))[0]
104104
print("Testing", testmod)
105105
try:
106-
subprocess.check_call(["/usr/bin/timeout", "100"] + executable + ["-m", testmod, "-f"])
106+
subprocess.check_call(["/usr/bin/timeout", "-s", "9", "60"] + executable + ["-m", testmod, "-f"])
107107
f.write(testmod)
108108
f.write("\n")
109109
except BaseException as e:
110110
print(e)
111-
p = subprocess.run(["/usr/bin/timeout", "100"] + executable + ["-m", testmod, "-v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=False)
111+
p = subprocess.run(["/usr/bin/timeout", "-s", "9", "60"] + executable + ["-m", testmod, "-v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=False)
112112
print("***")
113113
print(p.stdout)
114114
print("***")

0 commit comments

Comments
 (0)