[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #7053 [Ooni]: Ooniprobe doesn't run legacy tests, NameError: name 'inputs' is not defined



#7053: Ooniprobe doesn't run legacy tests, NameError: name 'inputs' is not defined
----------------------------------------+-----------------------------------
 Reporter:  isis                        |          Owner:  isis
     Type:  defect                      |         Status:  new 
 Priority:  major                       |      Milestone:      
Component:  Ooni                        |        Version:      
 Keywords:  ooniprobe, ooni, oonitests  |         Parent:      
   Points:                              |   Actualpoints:      
----------------------------------------+-----------------------------------
 After the switch to using twisted.trial as the basis for the API,
 ooniprobe's class for running legacy tests gives errors:

 {{{
 isis@wintermute:~/code/torproject/ooni-probe/ooni$ ../bin/ooniprobe
 plugins/captiveportal.py

 WARNING: No route found for IPv6 destination :: (no default route?)
 Traceback (most recent call last):
   File "../bin/ooniprobe", line 23, in <module>
     run()
   File "/home/isis/code/torproject/ooni-probe/ooni/oonicli.py", line 99,
 in run
     classes = runner.findTestClassesFromConfig(config)
   File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 110,
 in findTestClassesFromConfig
     classes.append(adaptLegacyTest(val, config))
   File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 57, in
 adaptLegacyTest
     class LegacyOONITest(nettest.TestCase):
   File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 76, in
 LegacyOONITest
     inputs = inputs
 NameError: name 'inputs' is not defined
 }}}


 {{{
 isis@wintermute:~/code/torproject/ooni-probe/ooni$ ../bin/ooniprobe
 plugins/bridget.py -b assets/bridgelist.txt

 WARNING: No route found for IPv6 destination :: (no default route?)
 Traceback (most recent call last):
   File "../bin/ooniprobe", line 23, in <module>
     run()
   File "/home/isis/code/torproject/ooni-probe/ooni/oonicli.py", line 99,
 in run
     classes = runner.findTestClassesFromConfig(config)
   File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 110,
 in findTestClassesFromConfig
     classes.append(adaptLegacyTest(val, config))
   File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 57, in
 adaptLegacyTest
     class LegacyOONITest(nettest.TestCase):
   File "/home/isis/code/torproject/ooni-probe/ooni/runner.py", line 76, in
 LegacyOONITest
     inputs = inputs
 NameError: name 'inputs' is not defined
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7053>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs