Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
This commit is contained in:
Jean-Laurent de Morlhon
2016-01-04 19:03:32 +01:00
parent 9517e1ed6c
commit 607bac5ce3
3 changed files with 147 additions and 34 deletions

View File

@@ -73,7 +73,7 @@ load ${BASE_TEST_DIR}/helpers.bash
@test "none: rm non existent machine fails 'machine rm ∞'" {
run machine rm ∞ -y
[ "$status" -eq 1 ]
[[ ${lines[0]} == "Error removing host \"∞\": Host does not exist: \"∞\"" ]]
[[ ${lines[1]} == "Error removing host \"∞\": Host does not exist: \"∞\"" ]]
}
@test "none: rm is successful 'machine rm 0'" {
@@ -100,7 +100,7 @@ load ${BASE_TEST_DIR}/helpers.bash
[ "$status" -eq 0 ]
run bash -c "machine rm -f c"
[ "$status" -eq 0 ]
[[ ${lines[0]} == "Successfully removed c" ]]
[[ ${lines[1]} == "Successfully removed c" ]]
}
# Should be replaced by the test below