These should have caused test failure since commit
ef921bdbdbacecf39ee2a1851f16dbba62175fcc. However, the test failure
occurred in a sub-shell, which covered the failure. So, add an error
exit if the sub-shell fails.
While here, add an error exit for another potential uncaught
sub-shell-related failure in a related test.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
ok <<EOF
WARNING: Failed to delete policy routing rule
Command "ip rule del from $ip pref $CTDB_PER_IP_ROUTING_RULE_PREF table ctdb.$ip" failed:
- Error: argument ctdb.$ip is wrong: invalid table ID
- Error: argument ctdb.$ip is wrong: table id value is invalid
+ Error: argument "ctdb.$ip" is wrong: invalid table ID
+ Error: argument "ctdb.$ip" is wrong: table id value is invalid
EOF
simple_test_event "releaseip" $dev $ip $bits
-}
+} || exit $?
# there should be no routes
Removing ip rule for public address ${ip} for routing table ctdb.${ip}
EOF
simple_test_event "shutdown"
-}
+} || exit $?
ok_null
simple_test_command diff -u "$_rt_orig" "$_rt_tables"