summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/run_header_test.ps1
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-10-05 16:00:59 +0000
committerStephen D. Huston <shuston@apache.org>2009-10-05 16:00:59 +0000
commit089c3d97ea6a29e02a7526908ccc530f603b5c75 (patch)
tree0c8bcdfcf09ea9dca4c2de13f10d208fd4a5cc60 /qpid/cpp/src/tests/run_header_test.ps1
parent8ce9685df2740db53676d1bdc17329507ddb747d (diff)
downloadqpid-python-089c3d97ea6a29e02a7526908ccc530f603b5c75.tar.gz
Correct some powershell problems for Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@821887 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/run_header_test.ps1')
-rw-r--r--qpid/cpp/src/tests/run_header_test.ps19
1 files changed, 4 insertions, 5 deletions
diff --git a/qpid/cpp/src/tests/run_header_test.ps1 b/qpid/cpp/src/tests/run_header_test.ps1
index add680f569..eedac3eaae 100644
--- a/qpid/cpp/src/tests/run_header_test.ps1
+++ b/qpid/cpp/src/tests/run_header_test.ps1
@@ -21,20 +21,19 @@
# TODO: this should be expanded to cover a wider set of types and go
# in both directions
-$srcdir = Split-Path $myInvocation.ScriptName
-$PYTHON_DIR = $srcdir\..\..\..\python
+$srcdir = Split-Path $myInvocation.InvocationName
+$PYTHON_DIR = "$srcdir\..\..\..\python"
if (Test-Path qpidd.port) {
set-item -path env:QPID_PORT -value (get-content -path qpidd.port -totalcount 1)
}
if (Test-Path $PYTHON_DIR -pathType Container) {
- ./header_test -p $QPID_PORT
+ Invoke-Expression "$env:OUTDIR\header_test -p $env:QPID_PORT"
$env:PYTHONPATH="$PYTHON_DIR;$env:PYTHONPATH"
- $srcdir/header_test.py "localhost" $QPID_PORT
+ python "$srcdir/header_test.py" "localhost" "$env:QPID_PORT"
exit $LASTEXITCODE
}
else {
"Skipping header test as python libs not found"
exit 0
}
-