Simplify start/stop helper func in system tests
The system test should never attempt to start or stop any other server than those that belong to that system test. Therefore, it is not necessary to specify the system test name in function calls. Additionally, this makes it possible to run the test inside a differently named directory, as its name is automatically detected with the $SYSTESTDIR variable. This enables running the system tests inside a temporary directory. Direct use of stop.pl was replaced with a more systematic approach to use stop_servers helper function.
This commit is contained in:
@@ -797,14 +797,14 @@ test_dnstap_roll() (
|
||||
|
||||
echo_i "checking 'rndc -roll <value>' (no versions)"
|
||||
ret=0
|
||||
start_server --noclean --restart --port "${PORT}" dnstap ns3
|
||||
start_server --noclean --restart --port "${PORT}" ns3
|
||||
_repeat 5 test_dnstap_roll 10.53.0.3 ns3 3 || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
echo_i "checking 'rndc -roll <value>' (versions)"
|
||||
ret=0
|
||||
start_server --noclean --restart --port "${PORT}" dnstap ns2
|
||||
start_server --noclean --restart --port "${PORT}" ns2
|
||||
_repeat 5 test_dnstap_roll 10.53.0.2 ns2 3 || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
Reference in New Issue
Block a user