diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 16:44:06 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 16:44:06 (GMT) |
commit | 08c27487173faf6a86b5fe20e6b545033b6d1638 (patch) | |
tree | 6b412c3c7bd0f7d72ad3c5d20221b740778c63bd /tests/devbot | |
parent | 542477741abe0135c652a78911a0eb9aec9b1a19 (diff) |
Rework initialization
To avoid duplicatin environ setup calls.
Diffstat (limited to 'tests/devbot')
-rw-r--r-- | tests/devbot/common.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/devbot/common.py b/tests/devbot/common.py index 548bd3e..1a48673 100644 --- a/tests/devbot/common.py +++ b/tests/devbot/common.py @@ -3,6 +3,7 @@ import unittest import tempfile from devbot import config +from devbot import main class DevbotTestCase(unittest.TestCase): @@ -12,6 +13,8 @@ class DevbotTestCase(unittest.TestCase): def setup_config(self, extra_args): temp_dir = tempfile.gettempdir() + main.load_plugins() + args = {"logs_dir": os.path.join(temp_dir, "logs"), "source_dir": os.path.join(temp_dir, "source"), "build_dir": os.path.join(temp_dir, "build"), |