path: root/.testr.conf
AgeCommit message (Collapse)Author
2018-11-30package-installs: provide for skip from env varIan Wienand
Provide a "when" option that provides for not installing packages based on a = or != match on an environment variable. Unit tests are added. Change-Id: Ifa824dccaff69fd447f45d54cb4a3083bcabdd86 Notes (review): Code-Review+2: Ian Wienand <> Workflow+1: Ian Wienand <> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 09 Jan 2019 03:34:08 +0000 Reviewed-on: Project: openstack/diskimage-builder Branch: refs/heads/master
2017-01-18Fix coverage reportIan Wienand
There's a few things going on here Firstly, we need to install coverage tool in test-requirements Secondly, .testr.conf has to use PYTHON because the coverage report works by resetting PYTHON='coverage run ...' Thirdly, because we call ourselves diskimage-builder but the python module is diskimage_builder that seems to confuse things. We need to use " test" (note, that is different to " testr"!) to use the PBR testr wrapper. That exposes a --coverage-package-name argument that calls the coverage tool with the right argument. With this I got a coverage report for our unit tests Change-Id: I9012e18eb7d01bee035140e70afa76c47c27eb01 Notes (review): Code-Review+2: Andreas Florath <> Code-Review+2: Stephanie Miller <> Workflow+1: Ian Wienand <> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 20 Jan 2017 00:13:31 +0000 Reviewed-on: Project: openstack/diskimage-builder Branch: refs/heads/master
2014-09-30Add unit test for cache-urlBen Nemec
A sanity check that cache-url does the right thing when presented with the appropriate curl return codes. This change brings in the test code for scripts from tripleo-image-elements, which needs to be factored out into a place both projects can use it. I'm stubbing out curl so we don't have a dep on curl in our unit tests, and because I've seen some strange behavior out of curl in the gate that caused random failures in this test. Change-Id: I31e6b06b45415feec7285511d07e65eb78d0d045 Notes (review): Verified+2: Jenkins Code-Review+2: Ghe Rivero <> Code-Review+2: Tomas Sedovic <> Workflow+1: Ben Nemec <> Code-Review+2: Jay Dobies <> Submitted-by: Jenkins Submitted-at: Thu, 02 Oct 2014 20:28:27 +0000 Reviewed-on: Project: openstack/diskimage-builder Branch: refs/heads/master
2012-12-14Add a .testr.conf configuration and ignore .testrepository.Robert Collins
Change-Id: I182d8b5567732ecf3da69f580c3e4b6d6438ab6b Notes (review): Verified+2: Jenkins Approved+1: Devananda van der Veen <> Code-Review+2: Devananda van der Veen <> Code-Review+2: Arata Notsu <> Submitted-by: Jenkins Submitted-at: Fri, 14 Dec 2012 07:26:34 +0000 Reviewed-on: Project: stackforge/diskimage-builder Branch: refs/heads/master