File: tests-point-to-wrapper.diff

package info (click to toggle)
python-afl 0.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 236 kB
  • ctags: 93
  • sloc: python: 560; sh: 85; makefile: 19
file content (16 lines) | stat: -rw-r--r-- 759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: point subprocess to wrapper script in tests
Author: Daniel Stender <stender@debian.org>
Forwarded: no
Last-Update: 2016-08-17

--- a/tests/test_fuzz.py
+++ b/tests/test_fuzz.py
@@ -96,7 +96,7 @@ def _test_fuzz(workdir, target, dumb=False):
         os.environ['AFL_NO_AFFINITY'] = '1'
     with open('/dev/null', 'wb') as devnull:
         with open(workdir + '/stdout', 'wb') as stdout:
-            cmdline = ['py-afl-fuzz', '-i', input_dir, '-o', output_dir, '--', sys.executable, target, token]
+            cmdline = ['./py-afl-fuzz', '-i', input_dir, '-o', output_dir, '--', sys.executable, target, token]
             if dumb:
                 cmdline[1:1] = ['-n']
             print('$ ' + ' '.join(shell_quote(arg) for arg in cmdline))