diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-26 11:25:03 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-26 11:25:03 (GMT) |
commit | d23a83060ddad0b6da5504d8cb5d524891ad9631 (patch) | |
tree | be881c67835922bc9d1c23276047b2f0241679c1 /devbot/run.py | |
parent | bc6035454c6138d0974173900e50e33793b2e5d0 (diff) |
pep8ize
Diffstat (limited to 'devbot/run.py')
-rw-r--r-- | devbot/run.py | 5 |
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)) - |