Browse Source

autotest: check for valgrind on the host

mission-4.1.18
Andrew Tridgell 13 years ago
parent
commit
481e06638a
  1. 2
      Tools/autotest/util.py

2
Tools/autotest/util.py

@ -51,7 +51,7 @@ def build_SIL(atype): @@ -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…
Cancel
Save