Skip to content

Commit 95d5362

Browse files
steve-stimfel
authored andcommitted
HPy tests: temporarily disable parallelism
1 parent 23fbf0f commit 95d5362

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -778,32 +778,33 @@ def run_hpy_unittests(python_binary, args=None, include_native=True):
778778
mx.log("Ensure 'setuptools' is installed")
779779
mx.run([python_binary] + args + ["-m", "ginstall", "install", "--user", "pytest"], nonZeroIsFatal=True, env=env)
780780
# parallelize
781-
import threading
782-
threads = []
783-
lock = threading.RLock()
784-
785-
class RaisingThread(threading.Thread):
786-
def run(self):
787-
self.exc = None
788-
try:
789-
super().run()
790-
except Exception as e: # pylint: disable=broad-except;
791-
self.exc = e
781+
# import threading
782+
# threads = []
783+
# lock = threading.RLock()
784+
#
785+
# class RaisingThread(threading.Thread):
786+
# def run(self):
787+
# self.exc = None
788+
# try:
789+
# super().run()
790+
# except Exception as e: # pylint: disable=broad-except;
791+
# self.exc = e
792792

793793
abi_list = ['cpython', 'universal', 'debug']
794794
if include_native:
795795
abi_list.append('nfi')
796796
for abi in abi_list:
797797
env["TEST_HPY_ABI"] = abi
798-
threads.append(RaisingThread(target=run_python_unittests, args=(python_binary, ), kwargs={
799-
"args": args, "paths": [_hpy_test_root()], "env": env.copy(), "use_pytest": True, "lock": lock,
800-
}))
801-
threads[-1].start()
802-
for t in threads:
803-
t.join()
804-
for t in threads:
805-
if t.exc:
806-
raise t.exc
798+
run_python_unittests(python_binary, args=args, paths=[_hpy_test_root()], env=env.copy(), use_pytest=True)
799+
# threads.append(RaisingThread(target=run_python_unittests, args=(python_binary, ), kwargs={
800+
# "args": args, "paths": [_hpy_test_root()], "env": env.copy(), "use_pytest": True, "lock": lock,
801+
# }))
802+
# threads[-1].start()
803+
# for t in threads:
804+
# t.join()
805+
# for t in threads:
806+
# if t.exc:
807+
# raise t.exc
807808

808809

809810
def run_tagged_unittests(python_binary, env=None, cwd=None):

0 commit comments

Comments
 (0)