Skip to content

Commit

Permalink
Add option to exclude invalid request line test from deck generation
Browse files Browse the repository at this point in the history
  • Loading branch information
anadahz committed Aug 9, 2016
1 parent 563e4de commit c7c4ca9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ooni/deckgen/cli.py
Expand Up @@ -21,6 +21,11 @@ class Options(usage.Options):
synopsis = """%s [options]
""" % sys.argv[0]

optFlags = [
["disable-irl-test", "d", "Generate a deck without the http "
"invalid request line test."]
]

optParameters = [
["country-code", "c", None,
"Specify the two letter country code for which we should "
Expand Down Expand Up @@ -93,7 +98,10 @@ def generate_deck(options):
)

deck = Deck(collector=options['collector'], bouncer=options['bouncer'])
deck.add_test('manipulation/http_invalid_request_line')

if not options['disable-irl-test']:
deck.add_test('manipulation/http_invalid_request_line')
print "Generating a deck without the http invalid request line test."
deck.add_test('manipulation/http_header_field_manipulation')

if url_list_country is not None:
Expand Down

0 comments on commit c7c4ca9

Please sign in to comment.