~bladernr/checkbox/change-virt-test-ram

Viewing all changes in revision 3790.1.1.

  • Committer: Zygmunt Krynicki
  • Date: 2015-05-19 10:56:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3791.
  • Revision ID: zygmunt.krynicki@canonical.com-20150519105654-5h1nv7e512kwv47b
support: patch pkg-resources in all testing environments

This patch moves the part that tries to patch pkg-resources after the
conditional lxc-only block.

The root problem is that pkg-resources used to leak some file
descriptors. At some time after that the test runner started to detect
problems like that and started logging nasty warnings whenever that
happens. The upstream pkg-resources developers did fix their code and
the version packaged after precise is okay.

For precise, some of our tests that would compare the full output of
stdout/stderr from python would include the extra warnings. Those
warnings show up only on precise (buggy pkg-resources) _and_ only during
testing (where extra code is setup to detect resource leaks).

For simplicity we chose to patch pkg-resources in the CI environment.
The patch is straight from the upstream repository.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: