--- /dev/null
+Description: Use python -m coverage instead of just coverage
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+Last-Update: 2013-12-18
+
+Index: horizon/run_tests.sh
+===================================================================
+--- horizon.orig/run_tests.sh 2014-01-18 15:13:54.000000000 +0800
++++ horizon/run_tests.sh 2014-01-18 15:13:59.000000000 +0800
+@@ -310,8 +310,8 @@
+ if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then
+ 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=$?
+
+@@ -326,9 +326,9 @@
+
+ if [ $with_coverage -eq 1 ]; then
+ echo "Generating coverage reports"
+- ${command_wrapper} coverage combine
+- ${command_wrapper} coverage xml -i --omit='/usr*,setup.py,*egg*,.venv/*'
+- ${command_wrapper} coverage html -i --omit='/usr*,setup.py,*egg*,.venv/*' -d reports
++ ${command_wrapper} python -m coverage combine
++ ${command_wrapper} python -m coverage xml -i --omit='/usr*,setup.py,*egg*,.venv/*'
++ ${command_wrapper} python -m coverage html -i --omit='/usr*,setup.py,*egg*,.venv/*' -d reports
+ fi
+ # Remove the leftover coverage files from the -p flag earlier.
+ rm -f .coverage.*
--- /dev/null
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ horizon (2013.2.1-1) unstable; urgency=medium
+ .
+ * New upstream release.
+ * Removes patch now applied upstream for CVE-2013-6858.
+ * (build-)depends needs python-iso8601 >= 0.1.8.
+ * Added a patch to use python -m coverage instead of just coverage.
+Author: Thomas Goirand <zigo@debian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+Index: horizon/run_tests.sh
+===================================================================
+--- horizon.orig/run_tests.sh 2014-01-18 15:13:43.000000000 +0800
++++ horizon/run_tests.sh 2014-01-18 15:13:43.000000000 +0800
+@@ -320,7 +320,7 @@
+ if [ "$NOSE_WITH_HTML_OUTPUT" = '1' ]; then
+ export NOSE_HTML_OUT_FILE='dashboard_nose_results.html'
+ 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=$?
+