summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qpid/cpp/src/tests/python_tests.ps12
-rw-r--r--qpid/cpp/src/tests/run_test.ps13
2 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/python_tests.ps1 b/qpid/cpp/src/tests/python_tests.ps1
index 8edaf40764..ab456a1557 100644
--- a/qpid/cpp/src/tests/python_tests.ps1
+++ b/qpid/cpp/src/tests/python_tests.ps1
@@ -33,7 +33,7 @@ if (Test-Path env:PYTHON_TESTS) {
$tests = "$env:PYTHON_TESTS"
}
else {
- $tests = "*"
+ $tests = "$args"
}
#cd $PYTHON_DIR
diff --git a/qpid/cpp/src/tests/run_test.ps1 b/qpid/cpp/src/tests/run_test.ps1
index f1afb292e7..4deb07bf71 100644
--- a/qpid/cpp/src/tests/run_test.ps1
+++ b/qpid/cpp/src/tests/run_test.ps1
@@ -69,4 +69,5 @@ while (($line = $p.StandardOutput.ReadLine()) -ne $null) {
# ReadToEnd() works, but doesn't show any output until the program exits.
#$p.StandardOutput.ReadToEnd()
$p.WaitForExit()
-exit $p.ExitCode
+$status = $p.ExitCode
+exit $status