[tor-bugs] #8330 [Ooni]: ooni: NetTestCase.checkRequiredOptions() does not parse conditionals

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Mar 30 02:12:51 UTC 2013


#8330: ooni: NetTestCase.checkRequiredOptions() does not parse conditionals
-----------------------------+----------------------------------------------
 Reporter:  isis             |          Owner:  hellais
     Type:  defect           |         Status:  new    
 Priority:  normal           |      Milestone:         
Component:  Ooni             |        Version:         
 Keywords:  ooni, bugreport  |         Parent:         
   Points:                   |   Actualpoints:         
-----------------------------+----------------------------------------------

Comment(by hellais):

 To implement this I think we would have to have our own syntax for
 defining required options and set checkRequiredOptions to be string.

 For example:

 ('dstip' and 'port') or 'file'

 can become

 {{{

 class FooTestCase(nettest.NetTestCase):
     checkRequiredOptions =  '( "dstip'" and "port" ) || "file"'

 }}}

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


More information about the tor-bugs mailing list