[tor-bugs] #8331 [Ooni]: ooni: string formatting error in runner.runTestCasesWithInputUnit()

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Feb 24 23:03:23 UTC 2013


#8331: ooni: string formatting error in runner.runTestCasesWithInputUnit()
-----------------------------+----------------------------------------------
 Reporter:  isis             |          Owner:  isis
     Type:  defect           |         Status:  new 
 Priority:  normal           |      Milestone:      
Component:  Ooni             |        Version:      
 Keywords:  ooni, bugreport  |         Parent:      
   Points:                   |   Actualpoints:      
-----------------------------+----------------------------------------------
 This surfaced in debugging #8329:

 Traceback (also attached):
 {{{
 (ooni)isis at 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.
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8331>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list