summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-11-18 18:58:35 +0000
committerAlan Conway <aconway@apache.org>2009-11-18 18:58:35 +0000
commit5c5b03b27c70045af1c3a048619deebdc17429bf (patch)
treea7d0d626e7b681538731dbb839c4ce0b859ab7f1 /qpid/python
parent6a5eb849a3567a81db1bd611b83a96b5bfb214a1 (diff)
downloadqpid-python-5c5b03b27c70045af1c3a048619deebdc17429bf.tar.gz
Provide default for brokertest.py OUTDIR define.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@881878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/brokertest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/python/qpid/brokertest.py b/qpid/python/qpid/brokertest.py
index 01372bb802..cea976652f 100644
--- a/qpid/python/qpid/brokertest.py
+++ b/qpid/python/qpid/brokertest.py
@@ -245,12 +245,13 @@ class BrokerTest(TestCase):
receiver_exec = os.getenv("RECEIVER_EXEC")
sender_exec = os.getenv("SENDER_EXEC")
store_lib = os.getenv("STORE_LIB")
-
rootdir = os.getcwd()
+
def configure(self, config): self.config=config
def setUp(self):
- self.dir = os.path.join(self.rootdir, self.config.defines["OUTDIR"], self.id())
+ outdir = self.config.defines.get("OUTDIR") or "brokertest.tmp"
+ self.dir = os.path.join(self.rootdir, outdir, self.id())
os.makedirs(self.dir)
os.chdir(self.dir)
self.stopem = [] # things to stop at end of test