mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
mavsdk_tests: also use sleep workaround locally
However, don't sleep as long as in CI.
This commit is contained in:
@@ -424,9 +424,11 @@ class Tester:
|
|||||||
break
|
break
|
||||||
|
|
||||||
# Workaround to prevent gz not being able to communicate
|
# Workaround to prevent gz not being able to communicate
|
||||||
# with gzserver
|
# with gzserver. In CI it tends to take longer.
|
||||||
if os.getenv("GITHUB_WORKFLOW") and runner.name == "gzserver":
|
if os.getenv("GITHUB_WORKFLOW") and runner.name == "gzserver":
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
else:
|
||||||
|
time.sleep(2)
|
||||||
|
|
||||||
if abort:
|
if abort:
|
||||||
self.stop_runners()
|
self.stop_runners()
|
||||||
|
|||||||
Reference in New Issue
Block a user