refactor: wrap all 'run dokku' calls in /bin/bash calls

This commit is contained in:
Jose Diaz-Gonzalez committed 2018-12-27 09:02:26 -05:00
commit 3656651cb9
27 files changed
+314 -315

No files matched your search

+4 -4
View File
@@ -13,20 +13,20 @@ teardown() {
}
@test "(repo) repo:gc, repo:purge-cache" {
run dokku repo:gc $TEST_APP
run /bin/bash -c "dokku repo:gc $TEST_APP"
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l | grep 0"
run /bin/bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l | grep 0"
echo "output: "$output
echo "status: "$status
assert_failure
run dokku repo:purge-cache $TEST_APP
run /bin/bash -c "dokku repo:purge-cache $TEST_APP"
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l | grep 0"
run /bin/bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l | grep 0"
echo "output: "$output
echo "status: "$status
assert_success