diff --git a/deploy/fabfile.py b/deploy/fabfile.py index 967664f..ed26dc2 100644 --- a/deploy/fabfile.py +++ b/deploy/fabfile.py @@ -469,7 +469,7 @@ def stop_rqworker_service(use_local_mode): def start_rqworker_service(use_local_mode): _change_rqworker_service(use_local_mode, action="start") -def run_tests(env="test", use_local_mode=False, reuse_db=False, db_type="mysql", run_selenium_tests=False, tag=None, project_dir=PROJECT_ROOT): +def run_tests(env="test", use_local_mode=False, reuse_db=False, db_type="mysql", run_selenium_tests=False, tag=None, exclude_tag=None, project_dir=PROJECT_ROOT): """env=test,use_local_mode=False,reuse_db=False,db_type=mysql,run_selenium_tests=False,tag=None""" # Convert any command line arguments from strings to boolean values where necessary. use_local_mode = (str(use_local_mode).lower() == 'true') @@ -478,6 +478,8 @@ def run_tests(env="test", use_local_mode=False, reuse_db=False, db_type="mysql", cmd_suffix = '' if reuse_db: cmd_suffix = " --keepdb" + if exclude_tag and exclude_tag != "None": + cmd_suffix += " --exclude-tag=%s" % exclude_tag if tag and tag != "None": cmd_suffix += " --tag=%s" % tag if not run_selenium_tests: