mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
autotest: consider lack of symlinks to be a soft error
some people use VMWare shared drives, which don't do hard links
This commit is contained in:
parent
056e0ca40d
commit
93db4a4a5b
@ -114,7 +114,10 @@ def drive_APMrover2(viewerip=None, map=False):
|
||||
print("buildlog=%s" % buildlog)
|
||||
if os.path.exists(buildlog):
|
||||
os.unlink(buildlog)
|
||||
try:
|
||||
os.link(logfile, buildlog)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
mavproxy.expect('Received [0-9]+ parameters')
|
||||
|
||||
|
@ -583,7 +583,10 @@ def fly_ArduCopter(viewerip=None, map=False):
|
||||
print("buildlog=%s" % buildlog)
|
||||
if os.path.exists(buildlog):
|
||||
os.unlink(buildlog)
|
||||
try:
|
||||
os.link(logfile, buildlog)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# the received parameters can come before or after the ready to fly message
|
||||
mavproxy.expect(['Received [0-9]+ parameters', 'Ready to FLY'])
|
||||
@ -867,7 +870,10 @@ def fly_CopterAVC(viewerip=None, map=False):
|
||||
print("buildlog=%s" % buildlog)
|
||||
if os.path.exists(buildlog):
|
||||
os.unlink(buildlog)
|
||||
try:
|
||||
os.link(logfile, buildlog)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# the received parameters can come before or after the ready to fly message
|
||||
mavproxy.expect(['Received [0-9]+ parameters', 'Ready to FLY'])
|
||||
|
@ -264,7 +264,10 @@ def fly_ArduPlane(viewerip=None, map=False):
|
||||
print("buildlog=%s" % buildlog)
|
||||
if os.path.exists(buildlog):
|
||||
os.unlink(buildlog)
|
||||
try:
|
||||
os.link(logfile, buildlog)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
mavproxy.expect('Received [0-9]+ parameters')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user