[tor-bugs] #17881 [Tor]: Use return codes from test programs to simplify test scripts

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Dec 17 14:32:51 UTC 2015


#17881: Use return codes from test programs to simplify test scripts
-----------------------------+--------------------------------
     Reporter:  cypherpunks  |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  Low          |  Milestone:  Tor: 0.2.8.x-final
    Component:  Tor          |    Version:  Tor: unspecified
     Severity:  Minor        |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |    Sponsor:
-----------------------------+--------------------------------
 Forwarding the exit codes from the underlying test programs can simplify
 the test scripts that encapsulate the test programs.

 For example, the switch_id test program checks the user id and returns
 early when we are not root. The test_switch_id.sh script does the same
 check which is redunant code if we change the return code in the test
 program and let the script forward it to the test driver.

 Other test scripts can be simplified in a similar way.

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


More information about the tor-bugs mailing list