Skip to content

Commit

Permalink
Added missing quote marks to TEST_PREFIX (GoogleCloudPlatform#10035)
Browse files Browse the repository at this point in the history
Without this, | gets interpreted as a pipe and the test count always becomes 0 if there are multiple prefixes supplied
  • Loading branch information
melinath authored and Charles Leon committed Feb 29, 2024
1 parent ddc9824 commit 10a24b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fun BuildSteps.runAcceptanceTests() {
exit 0
fi
export TEST_COUNT=${'$'}(./test-binary -test.list=%TEST_PREFIX% | wc -l)
export TEST_COUNT=${'$'}(./test-binary -test.list="%TEST_PREFIX%" | wc -l)
echo "Found ${'$'}{TEST_COUNT} tests that match the given test prefix %TEST_PREFIX%"
if test ${'$'}TEST_COUNT -le "0"; then
echo "Skipping test execution; no tests to run"
Expand Down

0 comments on commit 10a24b0

Please sign in to comment.