don't use $(exec_on ...)
since that will cause the test to exit on failure
This commit is contained in:
1 parent
eebb674232
commit
22c04bfc24
4 files changed
+7
-13
No files matched your search
@@ -10,10 +10,7 @@ docker_on $HOST1 rm -f c1 || true
|
||||
|
||||
weave_on $HOST1 run --with-dns 10.2.1.5/24 --name=c1 -t aanand/docker-dnsutils /bin/sh
|
||||
|
||||
ok=$(exec_on $HOST1 c1 host -t mx weave.works)
|
||||
assert_raises "echo $ok | grep google"
|
||||
|
||||
ok=$(exec_on $HOST1 c1 getent hosts 8.8.8.8)
|
||||
assert_raises "echo $ok | grep google"
|
||||
assert_raises "exec_on $HOST1 c1 host -t mx weave.works | grep google"
|
||||
assert_raises "exec_on $HOST1 c1 getent hosts 8.8.8.8 | grep google"
|
||||
|
||||
end_suite
|
||||
Reference in new issue
Block a user