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:
Andrew Tridgell 2013-06-24 13:06:11 +10:00
parent 056e0ca40d
commit 93db4a4a5b
3 changed files with 16 additions and 4 deletions

View File

@ -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')

View File

@ -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'])

View File

@ -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')