From f223092bf9ce606bdf9885794ff849849d5430f4 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Wed, 9 Dec 2009 01:29:40 +0000 Subject: Set up python test list correctly and get the correct exit code from a test process; resolves QPID-2252 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@888670 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/python_tests.ps1 | 2 +- cpp/src/tests/run_test.ps1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/python_tests.ps1 b/cpp/src/tests/python_tests.ps1 index 8edaf40764..ab456a1557 100644 --- a/cpp/src/tests/python_tests.ps1 +++ b/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/cpp/src/tests/run_test.ps1 b/cpp/src/tests/run_test.ps1 index f1afb292e7..4deb07bf71 100644 --- a/cpp/src/tests/run_test.ps1 +++ b/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 -- cgit v1.2.1