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
@@ -11,8 +11,8 @@ assert_raises "docker_on $HOST1 ps | grep weave" 0
|
||||
|
||||
docker_on $HOST1 rm -f c1 || true
|
||||
run_on $HOST1 sudo ./weave --local run 10.2.6.5/24 -ti --name=c1 ubuntu
|
||||
ok=$(exec_on $HOST1 c1 ifconfig | grep ethwe)
|
||||
assert "test -n \"$ok\" && echo pass" "pass"
|
||||
|
||||
assert_raises "exec_on $HOST1 c1 ifconfig | grep ethwe"
|
||||
|
||||
docker_on $HOST1 rm -f c1 || true
|
||||
|
||||
|
||||
Reference in new issue
Block a user