diff options
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/check | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/commands/check b/commands/check index 5c29599..89d92e0 100755 --- a/commands/check +++ b/commands/check @@ -4,6 +4,7 @@ import argparse import os import shutil import sys +import subprocess import common @@ -12,6 +13,7 @@ from devbot import check from devbot import command from devbot import main + def _get_profile(): profile_path = os.path.expanduser("~/.sugar/uitests") shutil.rmtree(profile_path, ignore_errors=True) @@ -83,6 +85,8 @@ def _check_devbot(): except subprocess.CalledProcessError: return False + return True + def _check_ui(): print "* Checking UI" @@ -95,14 +99,18 @@ def _check_ui(): def _run_checks(): + print "\n= Check =\n" + if not _check_devbot(): return False - if not _check_modules(): + if not check.check(): + return False + + if not _check_ui(): return False - if not check.check(): - sys.exit(1) + return True parser = argparse.ArgumentParser() |