summaryrefslogtreecommitdiff
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
commit9845877fe252577c04c932de72d85d3a920acfc2 (patch)
treef11e1b3ba6ac682c5fd1fe630785b40d7e3ee198
parent1674d80b61862e1054140c96f5db9eb401b11f11 (diff)
downloadqpid-python-9845877fe252577c04c932de72d85d3a920acfc2.tar.gz
Provide default for brokertest.py OUTDIR define.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881878 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/brokertest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/qpid/brokertest.py b/python/qpid/brokertest.py
index 01372bb802..cea976652f 100644
--- a/python/qpid/brokertest.py
+++ b/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