autotest: revert to subprocess.check_call

.run is only Python3
This commit is contained in:
Peter Barker 2021-06-22 18:16:27 +10:00 committed by Andrew Tridgell
parent c881fac1de
commit f032a1d404
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def build_unit_tests(**kwargs):
def run_unit_test(test): def run_unit_test(test):
"""Run unit test file.""" """Run unit test file."""
print("Running (%s)" % test) print("Running (%s)" % test)
subprocess.run([test], check=True) subprocess.check_call([test])
def run_unit_tests(): def run_unit_tests():