Live patch junitxml lib to include skipped tests
Patch copied from
https://bugs.launchpad.net/pyjunitxml/+bug/1243928
Change-Id: Ic13e4d13597674b72399b4d45e340127e96824aa
Closes-Issue: PROD-19250
diff --git a/Dockerfile b/Dockerfile
index 48e8c0e..6a22a44 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,7 +30,7 @@
&& echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > apt.conf.d/docker-gzip-indexes \
&& echo 'APT::Get::Install-Recommends "false"; APT::Get::Install-Suggests "false";' > apt.conf.d/docker-recommends \
&& apt-get update && apt-get upgrade -y \
- && apt-get install -y vim-tiny git-core python-pip libffi-dev libssl-dev python-dev python3-dev iputils-ping
+ && apt-get install -y vim-tiny git-core python-pip libffi-dev libssl-dev python-dev python3-dev iputils-ping patch
RUN pip install -U pip
WORKDIR /var/lib/
@@ -82,6 +82,9 @@
pip install . ; popd;
RUN pip install junitxml
+# Patch junitxml library to include skipped tests in the test report totals header
+COPY bin/patches/junitxml_init.patch /tmp/junitxml_init.patch
+RUN patch /usr/local/lib/python2.7/dist-packages/junitxml/__init__.py /tmp/junitxml_init.patch
# Cleanup.
RUN apt-get -y purge libx11-data xauth libxmuu1 libxcb1 libx11-6 libxext6 \