diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-12-09 01:29:40 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-12-09 01:29:40 +0000 |
commit | f223092bf9ce606bdf9885794ff849849d5430f4 (patch) | |
tree | 525d253c0e6eaa601581bd9b28067c66b1c243bb | |
parent | 2463acd242beca3bc469c7e44733c9bf9363f7ef (diff) | |
download | qpid-python-f223092bf9ce606bdf9885794ff849849d5430f4.tar.gz |
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
-rw-r--r-- | cpp/src/tests/python_tests.ps1 | 2 | ||||
-rw-r--r-- | cpp/src/tests/run_test.ps1 | 3 |
2 files changed, 3 insertions, 2 deletions
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 |