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/run_header_test.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/run_header_test.ps1')
| -rw-r--r-- | cpp/src/tests/run_header_test.ps1 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/tests/run_header_test.ps1 b/cpp/src/tests/run_header_test.ps1 index add680f569..eedac3eaae 100644 --- a/cpp/src/tests/run_header_test.ps1 +++ b/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 } - |
