mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -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)
|
print("buildlog=%s" % buildlog)
|
||||||
if os.path.exists(buildlog):
|
if os.path.exists(buildlog):
|
||||||
os.unlink(buildlog)
|
os.unlink(buildlog)
|
||||||
os.link(logfile, buildlog)
|
try:
|
||||||
|
os.link(logfile, buildlog)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
mavproxy.expect('Received [0-9]+ parameters')
|
mavproxy.expect('Received [0-9]+ parameters')
|
||||||
|
|
||||||
|
@ -583,7 +583,10 @@ def fly_ArduCopter(viewerip=None, map=False):
|
|||||||
print("buildlog=%s" % buildlog)
|
print("buildlog=%s" % buildlog)
|
||||||
if os.path.exists(buildlog):
|
if os.path.exists(buildlog):
|
||||||
os.unlink(buildlog)
|
os.unlink(buildlog)
|
||||||
os.link(logfile, buildlog)
|
try:
|
||||||
|
os.link(logfile, buildlog)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
# the received parameters can come before or after the ready to fly message
|
# the received parameters can come before or after the ready to fly message
|
||||||
mavproxy.expect(['Received [0-9]+ parameters', 'Ready to FLY'])
|
mavproxy.expect(['Received [0-9]+ parameters', 'Ready to FLY'])
|
||||||
@ -867,7 +870,10 @@ def fly_CopterAVC(viewerip=None, map=False):
|
|||||||
print("buildlog=%s" % buildlog)
|
print("buildlog=%s" % buildlog)
|
||||||
if os.path.exists(buildlog):
|
if os.path.exists(buildlog):
|
||||||
os.unlink(buildlog)
|
os.unlink(buildlog)
|
||||||
os.link(logfile, buildlog)
|
try:
|
||||||
|
os.link(logfile, buildlog)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
# the received parameters can come before or after the ready to fly message
|
# the received parameters can come before or after the ready to fly message
|
||||||
mavproxy.expect(['Received [0-9]+ parameters', 'Ready to FLY'])
|
mavproxy.expect(['Received [0-9]+ parameters', 'Ready to FLY'])
|
||||||
|
@ -264,7 +264,10 @@ def fly_ArduPlane(viewerip=None, map=False):
|
|||||||
print("buildlog=%s" % buildlog)
|
print("buildlog=%s" % buildlog)
|
||||||
if os.path.exists(buildlog):
|
if os.path.exists(buildlog):
|
||||||
os.unlink(buildlog)
|
os.unlink(buildlog)
|
||||||
os.link(logfile, buildlog)
|
try:
|
||||||
|
os.link(logfile, buildlog)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
mavproxy.expect('Received [0-9]+ parameters')
|
mavproxy.expect('Received [0-9]+ parameters')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user