mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
autotest: check for valgrind on the host
This commit is contained in:
parent
c4bba9c4d8
commit
481e06638a
@ -51,7 +51,7 @@ def build_SIL(atype):
|
||||
def start_SIL(atype, valgrind=True, wipe=False, CLI=False):
|
||||
'''launch a SIL instance'''
|
||||
cmd=""
|
||||
if valgrind:
|
||||
if valgrind and os.path.exists('/usr/bin/valgrind'):
|
||||
cmd += 'valgrind -q --log-file=%s-valgrind.log ' % atype
|
||||
cmd += reltopdir('tmp/%s.build/%s.elf' % (atype, atype))
|
||||
if wipe:
|
||||
|
Loading…
Reference in New Issue
Block a user