Skip to content

Commit

Permalink
Add means to exclude certain tests from being run
Browse files Browse the repository at this point in the history
  • Loading branch information
asset-web committed Jul 3, 2024
1 parent 11d5a79 commit a3f0c4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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:
Expand Down

0 comments on commit a3f0c4f

Please sign in to comment.