Skip to content

Commit

Permalink
Added missing quote marks to TEST_PREFIX (#10035) (#17366)
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

[upstream:326caf3235a24fbb7e8140baed87619a409712a6]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored and SarahFrench committed Mar 1, 2024
1 parent 0c66bb4 commit 7f6f83b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/10035.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
2 changes: 1 addition & 1 deletion .teamcity/components/builds/build_steps.kt
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 7f6f83b

Please sign in to comment.