Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/run.py')
-rw-r--r--devbot/run.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devbot/run.py b/devbot/run.py
index 110fe1a..34edab9 100644
--- a/devbot/run.py
+++ b/devbot/run.py
@@ -11,6 +11,7 @@ import tempfile
from devbot import environ
from devbot import config
+
def run(command):
environ.setup()
@@ -26,6 +27,7 @@ def run(command):
os.execlp(args[0], *args)
+
def run_test(command, test_path, virtual=False):
environ.setup()
@@ -60,6 +62,7 @@ def run_test(command, test_path, virtual=False):
return result
+
def collect_logs(source_path, log_name):
logs = {}
for filename in os.listdir(source_path):
@@ -82,6 +85,6 @@ def collect_logs(source_path, log_name):
os.symlink(log_path, last_log_path)
+
def _get_random_id():
return ''.join(random.choice(string.letters) for i in xrange(8))
-