Fix test running with -v flag
Running a test script with -v causes `weave_on` and `docker_on` to output progress messages, so we don't want to use those commands inside `$()`
This commit is contained in:
1 parent
d501c78795
commit
b4a43f1b85
1 file changed
+2
-2
@@ -65,8 +65,8 @@ assert_raises "exec_on $HOST1 c1 $PING $C3IP"
|
|||||||
stop_weave_on $HOST1
|
stop_weave_on $HOST1
|
||||||
|
|
||||||
# Ensure no warning is printed to the standard error:
|
# Ensure no warning is printed to the standard error:
|
||||||
ACTUAL_OUTPUT=$(weave_on $HOST1 launch-router 2>&1)
|
ACTUAL_OUTPUT=$($SSH $HOST1 CHECKPOINT_DISABLE="$CHECKPOINT_DISABLE" weave launch-router 2>&1)
|
||||||
EXPECTED_OUTPUT=$(docker_on $HOST1 inspect --format="{{.Id}}" weave)
|
EXPECTED_OUTPUT=$($SSH $HOST1 docker inspect --format="{{.Id}}" weave)
|
||||||
|
|
||||||
assert_raises "[ $EXPECTED_OUTPUT == $ACTUAL_OUTPUT ]"
|
assert_raises "[ $EXPECTED_OUTPUT == $ACTUAL_OUTPUT ]"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user