From ff01888051cd7efceb1bf8319c1dd3986c4bf6fc Mon Sep 17 00:00:00 2001 From: George Barnett Date: Thu, 14 Nov 2019 10:44:40 +0000 Subject: [PATCH] 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. --- .../test_01_resources/run-nio-alloc-counter-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntegrationTests/tests_04_performance/test_01_resources/run-nio-alloc-counter-tests.sh b/IntegrationTests/tests_04_performance/test_01_resources/run-nio-alloc-counter-tests.sh index ae08f97de..8158c1532 100755 --- a/IntegrationTests/tests_04_performance/test_01_resources/run-nio-alloc-counter-tests.sh +++ b/IntegrationTests/tests_04_performance/test_01_resources/run-nio-alloc-counter-tests.sh @@ -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" \