[fuzzing] Fail if valgrind is requested but not found

This commit is contained in:
Behdad Esfahbod 2019-04-15 16:52:21 -04:00
parent 07776b6096
commit 3ff66c0029
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ fails = 0
valgrind = None valgrind = None
if os.environ.get('RUN_VALGRIND', ''): if os.environ.get('RUN_VALGRIND', ''):
valgrind = which ('valgrind') valgrind = which ('valgrind')
if valgrind is None:
print ("""Valgrind requested but not found.""")
sys.exit (1)
parent_path = os.path.join (srcdir, "fonts") parent_path = os.path.join (srcdir, "fonts")
for file in os.listdir (parent_path): for file in os.listdir (parent_path):