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:
1 parent
85b09e11cf
commit
0532cae666
1 file changed
+8
-6
@@ -40,18 +40,20 @@ teardown() {
|
|||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
assert_success
|
||||||
|
|
||||||
run /bin/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"
|
||||||
echo "output: $output"
|
echo "count: '$output'"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_failure
|
assert_not_output 0
|
||||||
|
|
||||||
run /bin/bash -c "dokku repo:purge-cache $TEST_APP"
|
run /bin/bash -c "dokku repo:purge-cache $TEST_APP"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_success
|
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"
|
echo "status: $status"
|
||||||
assert_success
|
assert_output 0
|
||||||
|
|
||||||
run destroy_app
|
run destroy_app
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
|
|||||||
Reference in new issue
Block a user