1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

ctdb-tests: Add missing quotes in test output

These should have caused test failure since commit
ef921bdbdb.  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>
This commit is contained in:
Martin Schwenke 2024-09-04 20:10:43 +10:00 committed by Martin Schwenke
parent e819d55c4c
commit 18b0ea3e9a
2 changed files with 4 additions and 4 deletions

View File

@ -17,12 +17,12 @@ ctdb_get_1_public_address |
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

View File

@ -22,7 +22,7 @@ ctdb_get_1_public_address | {
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"