Add support for flags on the service:info command

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-28 05:37:34 -04:00
parent 3c045b11ab
commit 7a8d24931a
5 changed files with 87 additions and 15 deletions

View File

@@ -47,6 +47,14 @@ assert_success() {
fi
}
assert_failure() {
if [[ "$status" -eq 0 ]]; then
flunk "expected failed exit status"
elif [[ "$#" -gt 0 ]]; then
assert_output "$1"
fi
}
assert_exists() {
if [ ! -f "$1" ]; then
flunk "expected file to exist: $1"