mirror of https://github.com/ArduPilot/ardupilot
autotest: revert to subprocess.check_call
.run is only Python3
This commit is contained in:
parent
c881fac1de
commit
f032a1d404
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue