autotest: fixed autotest executable path

This commit is contained in:
Andrew Tridgell 2013-04-06 18:24:43 +11:00
parent 71f6287388
commit 2b19249e4a

View File

@ -122,7 +122,7 @@ def start_SIL(atype, valgrind=False, wipe=False, height=None):
cmd="" cmd=""
if valgrind and os.path.exists('/usr/bin/valgrind'): if valgrind and os.path.exists('/usr/bin/valgrind'):
cmd += 'valgrind -q --log-file=%s-valgrind.log ' % atype cmd += 'valgrind -q --log-file=%s-valgrind.log ' % atype
executable = 'tmp/%s.build/%s.elf' % (atype, atype) executable = reltopdir('tmp/%s.build/%s.elf' % (atype, atype))
if not os.path.exists(executable): if not os.path.exists(executable):
executable = '/tmp/%s.build/%s.elf' % (atype, atype) executable = '/tmp/%s.build/%s.elf' % (atype, atype)
cmd += executable cmd += executable