Add support for flags on the service:info command

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-28 05:38:03 -04:00
parent f02aaf39d8
commit c806328cc8
5 changed files with 86 additions and 20 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"