don't use $(exec_on ...)

since that will cause the test to exit on failure
This commit is contained in:
Matthias Radestock committed 2015-04-22 20:09:34 +01:00
1 parent eebb674232
commit 22c04bfc24
4 files changed
+7 -13

No files matched your search

+2 -4
View File
@@ -90,10 +90,8 @@ exec_on() {
# assert_dns_record <host> <container> <name> <ip>
assert_dns_record() {
ok=$(exec_on $1 $2 getent hosts $3)
assert "echo $ok" "$4 $3"
ok=$(exec_on $1 $2 getent hosts $4)
assert "echo $ok" "$4 $3"
assert "exec_on $1 $2 getent hosts $3 | tr -s ' '" "$4 $3"
assert "exec_on $1 $2 getent hosts $4 | tr -s ' '" "$4 $3"
}
start_suite() {