summaryrefslogtreecommitdiff
path: root/.testr.conf
AgeCommit message (Collapse)Author
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 "setup.py test" (note, that is different to "setup.py 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 <andreas@florath.net> Code-Review+2: Stephanie Miller <stephane@alum.mit.edu> Workflow+1: Ian Wienand <iwienand@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 20 Jan 2017 00:13:31 +0000 Reviewed-on: https://review.openstack.org/421652 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 <ghe.rivero@gmail.com> Code-Review+2: Tomas Sedovic <tomas@sedovic.cz> Workflow+1: Ben Nemec <openstack@nemebean.com> Code-Review+2: Jay Dobies <jason.dobies@redhat.com> Submitted-by: Jenkins Submitted-at: Thu, 02 Oct 2014 20:28:27 +0000 Reviewed-on: https://review.openstack.org/84493 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 <devananda.vdv@gmail.com> Code-Review+2: Devananda van der Veen <devananda.vdv@gmail.com> Code-Review+2: Arata Notsu <notsu@virtualtech.jp> Submitted-by: Jenkins Submitted-at: Fri, 14 Dec 2012 07:26:34 +0000 Reviewed-on: https://review.openstack.org/18007 Project: stackforge/diskimage-builder Branch: refs/heads/master