From: Thomas Goirand Date: Fri, 14 Mar 2014 10:37:53 +0000 (+0800) Subject: Refreshed fix-python-m-coverage.patch X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a91619374239bf3f2e73c3e4c5aa9119576e9c3d;p=openstack-build%2Fhorizon-build.git Refreshed fix-python-m-coverage.patch Change-Id: I8c0332d606432de6ada6be8186d7094d3c269d51 Rewritten-From: e9c9d5cfd7297d6d7adbe57b2a32907a8c0439c4 --- diff --git a/trusty/debian/patches/fix-python-m-coverage.patch b/trusty/debian/patches/fix-python-m-coverage.patch index a386dc7..a834347 100644 --- a/trusty/debian/patches/fix-python-m-coverage.patch +++ b/trusty/debian/patches/fix-python-m-coverage.patch @@ -2,29 +2,22 @@ Description: Use "python -m covergate" instead of just "coverage" In Debian, there's no "coverage" command, so we need to apply this. Author: Thomas Goirand Forwarded: no -Last-Update: 2014-01-29 +Last-Update: 2014-03-14 ---- horizon-2014.1~b2.orig/run_tests.sh -+++ horizon-2014.1~b2/run_tests.sh -@@ -310,8 +310,8 @@ function run_tests_all { - if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then +--- horizon-2014.1~b3.orig/run_tests.sh ++++ horizon-2014.1~b3/run_tests.sh +@@ -315,8 +315,8 @@ function run_tests_all { export NOSE_HTML_OUT_FILE='horizon_nose_results.html' fi -- ${command_wrapper} coverage erase -- ${command_wrapper} coverage run -p $root/manage.py test horizon --settings=horizon.test.settings $testopts -+ ${command_wrapper} python -m coverage erase -+ ${command_wrapper} python -m coverage run -p $root/manage.py test horizon --settings=horizon.test.settings $testopts - # get results of the Horizon tests - HORIZON_RESULT=$? - -@@ -320,15 +320,15 @@ function run_tests_all { - if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then - export NOSE_HTML_OUT_FILE='dashboard_nose_results.html' + if [ $with_coverage -eq 1 ]; then +- ${command_wrapper} coverage erase +- coverage_run="coverage run -p" ++ ${command_wrapper} python -m coverage erase ++ coverage_run="python -m coverage run -p" fi -- ${command_wrapper} coverage run -p $root/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings $testopts -+ ${command_wrapper} python -m coverage run -p $root/manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings $testopts - # get results of the openstack_dashboard tests - DASHBOARD_RESULT=$? + ${command_wrapper} ${coverage_run} $root/manage.py test horizon --settings=horizon.test.settings $testopts + # get results of the Horizon tests +@@ -333,9 +333,9 @@ function run_tests_all { if [ $with_coverage -eq 1 ]; then echo "Generating coverage reports"