Skip to content

Commit

Permalink
no bug - Do not create qa data if not running qa tests (fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
dklawren committed Jul 3, 2019
1 parent 3d3c6ec commit 4c3632b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Expand Up @@ -53,6 +53,7 @@ defaults:
<<: *bmo_env
BZ_QA_CONF_FILE: /app/.circleci/selenium_test.conf
BZ_QA_ANSWERS_FILE: /app/.circleci/checksetup_answers.txt
BZ_QA_CONFIG: 1
- <<: *mysql_image
environment: *mysql_env
- <<: *selenium_firefox_image
Expand Down
9 changes: 6 additions & 3 deletions scripts/entrypoint.pl
Expand Up @@ -142,9 +142,12 @@ sub cmd_load_test_data {
'--param', 'use_mailer_queue=0'
);

chdir '/app/qa/config';
say 'chdir(/app/qa/config)';
run('perl', 'generate_test_data.pl');
if ($ENV{BZ_QA_CONFIG}) {
chdir '/app/qa/config';
say 'chdir(/app/qa/config)';
run('perl', 'generate_test_data.pl');
chdir '/app';
}
}

sub cmd_test_webservices {
Expand Down

0 comments on commit 4c3632b

Please sign in to comment.