Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Fix tools/afl/harness.py to not break tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vfaronov committed Mar 24, 2017
1 parent 7fd0dfc commit 156afa7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tools/afl/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@

import httpolice.cli

args = httpolice.cli.parse_args(sys.argv)

import afl
while afl.loop(100):
httpolice.cli.run_cli(args, sys.stdout, sys.stderr)

# As suggestd by python-afl docs.
os._exit(0) # pylint: disable=protected-access
if __name__ == '__main__':
args = httpolice.cli.parse_args(sys.argv)
import afl
while afl.loop(100):
httpolice.cli.run_cli(args, sys.stdout, sys.stderr)
# As suggested by python-afl docs.
os._exit(0) # pylint: disable=protected-access

0 comments on commit 156afa7

Please sign in to comment.