From f032a1d4049304f7fa5250436e432d4d383d6809 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 22 Jun 2021 18:16:27 +1000 Subject: [PATCH] autotest: revert to subprocess.check_call .run is only Python3 --- Tools/autotest/autotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 402f5fa389..d17bcccaeb 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -158,7 +158,7 @@ def build_unit_tests(**kwargs): def run_unit_test(test): """Run unit test file.""" print("Running (%s)" % test) - subprocess.run([test], check=True) + subprocess.check_call([test]) def run_unit_tests():