Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #8331

Closed
Open
Created Feb 24, 2013 by Isis Lovecruft@isis

ooni: string formatting error in runner.runTestCasesWithInputUnit()

This surfaced in debugging #8329 (closed):

Traceback (also attached):

(ooni)isis@wintermute:~/code/torproject/ooni-probe$ s ./bin/ooniprobe nettests/experimental/tls_handshake.py -f ./private/lists/bridgelist.fake
[sudo] password for isis:
[!] pypcap or dnet not installed. Certain tests may not work.
Log opened.
Starting
Starting sniffer
[!] Initializing DummyPcapWriter. We will not actually write to a pcapfile
[D] No test deck detected
[D] processing options
[D] Running [(<class 'nettests.experimental.tls_handshake.TLSHandshakeTest'>, 'test_tlsv1_handshake')]
[D] Options {'inputs': <ooni.nettest.inputProcessorIterator object at 0x2de3590>, 'version': '0.0.1', 'name': 'tls-handshake'}
[D] cmd_line_options {'pcapfile': None, 'help': 0, 'subargs': ('-f', './private/lists/bridgelist.fake'), 'resume': 0, 'parallelism': '10', 'test': 'nettests/ex
perimental/tls_handshake.py', 'logfile': None, 'collector': None, 'reportfile': None}
[D] Creating report_tls_handshake_2013-02-24T215533Z.yamloo
[D] Writing report with YAML reporter
Reporting to file report_tls_handshake_2013-02-24T215533Z.yamloo
[D] Not going to resume tls_handshake.py
[D] input_unit_items: 1
[D] test_case_number: 1.0
[D] Test case number: 1.0
[D] Total iterations: 1.0
[D] Current iteration: 0.0
[D] Running tls_handshake.py with input unit <<class 'ooni.inputunit.InputUnit'> inputs=<listiterator object at 0x2de3850>>
[D] Running test cases with input unit
Traceback (most recent call last):
  File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 462, in runTestCases
    yaml_reporter, oonib_reporter)
  File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 265, in runTestCasesWithInputUnit
    log.debug("Running test with this input %s" % test_input)
TypeError: not all arguments converted during string formatting
[D] testsEnded: Finished running all tests
[D] [tls_handshake.py] 0.0%
[D] [tls_handshake.py] 0.0%
[D] [tls_handshake.py] 0.0%
^CReceived SIGINT, shutting down.
Main loop terminated.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking