summaryrefslogtreecommitdiff
path: root/cpp/src/tests/run_federation_tests.ps1
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2010-04-21 21:18:06 +0000
committerStephen D. Huston <shuston@apache.org>2010-04-21 21:18:06 +0000
commit5d6af32600f3e42796358a73fa44432e214379a7 (patch)
tree14ef27d3d9badc35ee21860df7efb67b4790fd0a /cpp/src/tests/run_federation_tests.ps1
parentc4651c9358c6508ea820ab84123dc9ba9d5ee776 (diff)
downloadqpid-python-5d6af32600f3e42796358a73fa44432e214379a7.tar.gz
Add QMF_LIB to PYTHONPATH to pick up qmf.console
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@936519 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/run_federation_tests.ps1')
-rw-r--r--cpp/src/tests/run_federation_tests.ps15
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/tests/run_federation_tests.ps1 b/cpp/src/tests/run_federation_tests.ps1
index 087c65296c..bbbe0f3bf0 100644
--- a/cpp/src/tests/run_federation_tests.ps1
+++ b/cpp/src/tests/run_federation_tests.ps1
@@ -26,6 +26,9 @@ if (!(Test-Path $PYTHON_DIR -pathType Container)) {
exit 1
}
+$PYTHON_TEST_DIR = "$srcdir\..\..\..\tests\src\py"
+$QMF_LIB = "$srcdir\..\..\..\extras\qmf\src\py"
+
# Test runs from the tests directory but the broker executable is one level
# up, and most likely in a subdirectory from there based on what build type.
# Look around for it before trying to start it.
@@ -70,7 +73,7 @@ trap {
&start_brokers
"Running federation tests using brokers on ports $env:LOCAL_PORT $env:REMOTE_PORT"
-$env:PYTHONPATH="$PYTHON_DIR;$srcdir"
+$env:PYTHONPATH="$PYTHON_DIR;$PYTHON_TEST_DIR;$env:PYTHONPATH;$QMF_LIB"
$tests = "*"
Invoke-Expression "python $PYTHON_DIR/qpid-python-test -m federation -b localhost:$env:LOCAL_PORT -Dremote-port=$env:REMOTE_PORT $tests" | Out-Default
$RETCODE=$LASTEXITCODE