fix: correct failing repo test

The previous version grepped for the number 0, which is now output in the repo cache line count. We should check for the exact value instead.
This commit is contained in:
Jose Diaz-Gonzalez
2021-05-22 19:28:06 -04:00
parent 85b09e11cf
commit 0532cae666

View File

@@ -40,18 +40,20 @@ teardown() {
echo "status: $status"
assert_success
run /bin/bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l | grep 0"
echo "output: $output"
run /bin/bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l"
echo "count: '$output'"
echo "status: $status"
assert_failure
assert_not_output 0
run /bin/bash -c "dokku repo:purge-cache $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l | grep 0"
echo "output: $output"
run /bin/bash -c "find $DOKKU_ROOT/$TEST_APP/cache -type f | wc -l"
echo "count: '$output'"
echo "status: $status"
assert_success
assert_output 0
run destroy_app
echo "output: $output"