summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-07-05 17:57:20 +0000
committerAlan Conway <aconway@apache.org>2013-07-05 17:57:20 +0000
commite39cbc634df8f15de7e2664450797622fc9b11a3 (patch)
tree1f8a5dee6884e93677d40d0feb684554c245b3f7
parent9003c05edf8a7c6f6f199976470c255968d8bbe8 (diff)
downloadqpid-python-e39cbc634df8f15de7e2664450797622fc9b11a3.tar.gz
NO-JIRA: HA Changed output directory for ha_tests.py to avoid other testsc overwriting.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1500085 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/src/tests/ha_tests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py
index f3360658d3..80bea711b5 100755
--- a/qpid/cpp/src/tests/ha_tests.py
+++ b/qpid/cpp/src/tests/ha_tests.py
@@ -1286,9 +1286,12 @@ class StoreTests(BrokerTest):
cluster[1].assert_browse_backup("q2", ["hello", "end"])
if __name__ == "__main__":
- shutil.rmtree("brokertest.tmp", True)
+ outdir = "ha_tests.tmp"
+ shutil.rmtree(outdir, True)
qpid_ha = os.getenv("QPID_HA_EXEC")
if qpid_ha and os.path.exists(qpid_ha):
- os.execvp("qpid-python-test", ["qpid-python-test", "-m", "ha_tests"] + sys.argv[1:])
+ os.execvp("qpid-python-test",
+ ["qpid-python-test", "-m", "ha_tests", "-DOUTDIR=%s"%outdir]
+ + sys.argv[1:])
else:
print "Skipping ha_tests, %s not available"%(qpid_ha)