hack/test: Fix checking if integration-cli are filtered out
Previous check checked if ANY of the test directories isn't integration-cli. This means it was true if TEST_FILTER matched multiple tests from both integration and integration-cli suite. Remove the grep `-v` inversion and replace it with a bash negation, so it actually checks if there is no `integration-cli` in test dirs. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
63d477b20e
commit
510cac5f5b
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ setup_integration_test_filter() {
|
|||
fi
|
||||
|
||||
if [ -z "${TEST_SKIP_INTEGRATION_CLI}" ]; then
|
||||
if echo "$dirs" | grep -vq '^./integration-cli$'; then
|
||||
if ! echo "$dirs" | grep -q '^./integration-cli$'; then
|
||||
TEST_SKIP_INTEGRATION_CLI=1
|
||||
echo "Skipping integration-cli tests since the supplied filter \"${TEST_FILTER}\" omits all integration-cli tests"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue