Skip to content

Commit 00f4385

Browse files
committed
tests: improve error message for missing afl-* tools.
Before: RuntimeError: afl-cmin not found; is PATH set correctly? After: RuntimeError: afl-cmin not found; is AFL installed?
1 parent 2b39789 commit 00f4385

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tools.py

+2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def require_commands(*cmds):
146146
if cmd == 'ps':
147147
cmd = 'ps(1)'
148148
reason = 'procps installed'
149+
elif cmd.startswith('afl-'):
150+
reason = 'AFL installed'
149151
else:
150152
reason = 'PATH set correctly'
151153
raise RuntimeError('{cmd} not found; is {reason}?'.format(cmd=cmd, reason=reason))

0 commit comments

Comments
 (0)