Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/common.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-01-14 11:01:37 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-01-14 11:01:37 (GMT)
commita75122d1f6b3cbdfb6456e4e559d66e6b8d77e25 (patch)
treece0328a09fa930c30c289487c6976775334dedfb /commands/common.py
parent8be37beabcbaef276a45a44ff94c8ea293c3f05a (diff)
Make system check interactive in all commands
Diffstat (limited to 'commands/common.py')
-rw-r--r--commands/common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/common.py b/commands/common.py
index c09da54..30bbdc2 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -9,6 +9,8 @@ from devbot import main
def setup(log_name=None, check_args={}):
+ is_buildbot = "SUGAR_BUILDBOT" in os.environ
+
config_args = {"config_dir": os.path.join(base_dir, "config"),
"install_dir": os.path.join(base_dir, "install"),
"source_dir": os.path.join(base_dir, "source"),
@@ -16,10 +18,13 @@ def setup(log_name=None, check_args={}):
"state_dir": os.path.join(base_dir, "state"),
"prefs_path": os.path.join(base_dir, "prefs"),
"logs_dir": os.path.join(base_dir, "logs"),
- "relocatable": "SUGAR_BUILDBOT" in os.environ}
+ "relocatable": is_buildbot}
if log_name:
config_args["log_name"] = log_name
+ if is_buildbot:
+ check_args["interactive"] = False
+
if not main.setup(config_args, check_args):
sys.exit(1)