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 | 4185e2354bedefec955c3869066e62a743342033 (patch) | |
tree | 73cd6820925fcdfd04ea17fa9fb408e27e4913ed | |
parent | 9dffb4b3ffdecc33445a61f69d7581529cf5de3f (diff) | |
download | qpid-python-4185e2354bedefec955c3869066e62a743342033.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@888670 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/tests/python_tests.ps1 | 2 | ||||
-rw-r--r-- | qpid/cpp/src/tests/run_test.ps1 | 3 |
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 |