diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-10-05 16:00:59 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-10-05 16:00:59 +0000 |
| commit | ae074a2954fe5bb98a3d029e82690fa569470414 (patch) | |
| tree | 1ef15802a1860ae82fad73bbbd7762c6dc1f843e /cpp/src/tests/quick_topictest.ps1 | |
| parent | 4f80172fc8a66475045df2299b45c4eb6d46a1b2 (diff) | |
| download | qpid-python-ae074a2954fe5bb98a3d029e82690fa569470414.tar.gz | |
Correct some powershell problems for Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821887 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/quick_topictest.ps1')
| -rw-r--r-- | cpp/src/tests/quick_topictest.ps1 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/tests/quick_topictest.ps1 b/cpp/src/tests/quick_topictest.ps1 index 2b857edfff..b1e0ed1f7d 100644 --- a/cpp/src/tests/quick_topictest.ps1 +++ b/cpp/src/tests/quick_topictest.ps1 @@ -18,12 +18,13 @@ # # Quick and quiet topic test for make check. -$srcdir = Split-Path $myInvocation.ScriptName -$PsHome\powershell $srcdir\topictest.ps1 -subscribers 2 -messages 2 -batches 1 > topictest.log 2>&1 -if ($LastExitCode != 0) { - echo $0 FAILED: +[string]$me = $myInvocation.InvocationName +$srcdir = Split-Path $me +powershell "$srcdir\topictest.ps1" -subscribers 2 -messages 2 -batches 1 > topictest.log 2>&1 +if (!$?) { + "$me FAILED:" cat topictest.log exit $LastExitCode } -rm topictest.log +Remove-Item topictest.log exit 0 |
