Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1714)

Unified Diff: appengine/findit/util_scripts/run.sh

Issue 1949363002: [Findit] Fixing code coverage directory (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/util_scripts/run.sh
diff --git a/appengine/findit/util_scripts/run.sh b/appengine/findit/util_scripts/run.sh
index 578d80cee617cff3a9bf8aea0d955dd688e0754d..96373cb7700b763ebb51c6e0a09274a9d62b8829 100755
--- a/appengine/findit/util_scripts/run.sh
+++ b/appengine/findit/util_scripts/run.sh
@@ -51,9 +51,13 @@ print_command_for_queue_cron_dispatch() {
}
run_unittests() {
- local coverage_report_dir="${TMP_DIR}/coverage"
- python ${INFRA_DIR}/test.py test appengine/findit --html-report ${coverage_report_dir}
- echo "Code coverage report file://${coverage_report_dir}/index.html"
+ local findit="appengine/findit"
+ local coverage_report_parent_dir="${TMP_DIR}/coverage"
+ if [ ! -d ${coverage_report_parent_dir} ]; then
+ mkdir -p ${coverage_report_parent_dir}
+ fi
+ python ${INFRA_DIR}/test.py test ${findit} --html-report ${coverage_report_parent_dir}
+ echo "Code coverage report file://${coverage_report_parent_dir}/${findit}/index.html"
}
run_findit_locally() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698