Fix running run-nio-alloc-counter-tests.sh for a single test (#1245)

Motivation:

Using the single test argument with the run-nio-alloc-counter-tests.sh
does not work as expected as the given test would just replace the first
test in the list.

Modifications:

Replace the tests to run with a single-element array containing the test
provided as an argument.

Result:

- A single test can be run when specified as a command line arg.
This commit is contained in:
George Barnett 2019-11-14 10:44:40 +00:00 committed by GitHub
parent 746fb8440f
commit ff01888051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ shift $((OPTIND-1))
tests_to_run=("$here"/test_*.swift)
if [[ $# -gt 0 ]]; then
tests_to_run=$@
tests_to_run=("$@")
fi
"$here/../../allocation-counter-tests-framework/run-allocation-counter.sh" \