mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
mavsdk_tests: fix bugs in readyness checks
This commit is contained in:
@@ -154,7 +154,7 @@ def determine_tests(workspace_dir, filter):
|
|||||||
def is_running(process_name):
|
def is_running(process_name):
|
||||||
for proc in psutil.process_iter(attrs=['name']):
|
for proc in psutil.process_iter(attrs=['name']):
|
||||||
if proc.info['name'] == process_name:
|
if proc.info['name'] == process_name:
|
||||||
True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
@@ -172,6 +172,7 @@ def is_everything_ready():
|
|||||||
print("PX4 SITL is not built\n"
|
print("PX4 SITL is not built\n"
|
||||||
"run `PX4_MAVSDK_TESTING=y DONT_RUN=1 "
|
"run `PX4_MAVSDK_TESTING=y DONT_RUN=1 "
|
||||||
"make px4_sitl gazebo mavsdk_tests`")
|
"make px4_sitl gazebo mavsdk_tests`")
|
||||||
|
result = False
|
||||||
if not os.path.isfile('build/px4_sitl_default/mavsdk_tests'):
|
if not os.path.isfile('build/px4_sitl_default/mavsdk_tests'):
|
||||||
print("Test runner is not built\n"
|
print("Test runner is not built\n"
|
||||||
"run `PX4_MAVSDK_TESTING=y DONT_RUN=1 "
|
"run `PX4_MAVSDK_TESTING=y DONT_RUN=1 "
|
||||||
|
|||||||
Reference in New Issue
Block a user