Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-28 20:03:18 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-28 20:03:18 (GMT)
commitef443c2bd7e8e5581d6634a6a14b803b21e520ae (patch)
tree8ad01a7de2cc87826759875a4c1e196118b8e3b6 /devbot
parentc9476f1837246cfe59c7a8e262e404def7c6f533 (diff)
Move all checks into python code
So that they can be logged.
Diffstat (limited to 'devbot')
-rw-r--r--devbot/check.py (renamed from devbot/test.py)12
-rw-r--r--devbot/config.py2
2 files changed, 7 insertions, 7 deletions
diff --git a/devbot/test.py b/devbot/check.py
index 44ddfa6..aca4fed 100644
--- a/devbot/test.py
+++ b/devbot/check.py
@@ -7,30 +7,30 @@ from devbot import xvfb
from devbot import build
-def test_one(module_name):
+def check_one(module_name):
for module in config.load_modules():
if module.name == module_name:
- return _test_module(module)
+ return _check_module(module)
return False
-def test():
+def check():
if not build.build():
return False
modules = config.load_modules()
for module in modules:
- if not _test_module(module):
+ if not _check_module(module):
return False
return True
-def _test_module(module):
+def _check_module(module):
result = True
- if module.has_tests:
+ if module.has_checks:
print "* Checking %s" % module.name
os.chdir(module.get_build_dir())
diff --git a/devbot/config.py b/devbot/config.py
index e3782f2..fe96f17 100644
--- a/devbot/config.py
+++ b/devbot/config.py
@@ -34,7 +34,7 @@ class Module:
self.auto_install = info.get("auto-install", False)
self.options = info.get("options", [])
self.options_evaluated = info.get("options_evaluated", [])
- self.has_tests = info.get("has_tests", False)
+ self.has_checks = info.get("has_checks", False)
self.distribute = info.get("distribute", False)
if get_pref("BUILD_IN_SOURCE"):