[OpenStack-Infra] Git-review tests

Dina Belova dbelova at mirantis.com
Tue Jul 2 11:35:26 UTC 2013


New patch set added: https://review.openstack.org/#/c/35104/3
testr and testtools were used to to do interesting things like run tests in
parallel (sanely) and potentially report partial results back to zuul.


On Mon, Jul 1, 2013 at 1:01 PM, Dina Belova <dbelova at mirantis.com> wrote:

> I've created change request with integration tests. Please take a look on
> it:
> https://review.openstack.org/35104
>
> Tests are the Python copy of
> https://github.com/fungi/grtest/blob/master/grtest bash file and do not
> cover all git-review functionality (this can be done later).
>
> Tests require Gerrit war file (like 2.6.1-gerrit.war) in the .gerrit
> directory in the git-review project (like
> git-review/.gerrit/2.6.1-gerrit.war). This has to be done manually.
>
> To run tests the following command can be done:
>
> tox -e py27.
>
>
> On Fri, Jun 21, 2013 at 12:50 AM, Jeremy Stanley <fungi at yuggoth.org>wrote:
>
>> On 2013-06-21 00:01:53 +0400 (+0400), Dina Belova wrote:
>> > I may spend some time on this subject, so please share your
>> > script if you can so that I can look through it and see what can
>> > be done to provide some automated gating.
>>
>> (Removed openstack-dev from the Cc: to reduce unnecessary
>> cross-posting.)
>>
>> The current, very hideous exercise script can be had from...
>>
>>     https://github.com/fungi/grtest/blob/master/grtest
>>
>> It assumes a number of things about our Gerrit sandbox including
>> project layout/contents. It also (if invoked with --system) will
>> sudo pip install the version of git-review you're testing, so it's
>> not recommended for running on any sensitive systems... I usually
>> use a throwaway VM if I'm doing system install/upgrade/uninstall
>> tests with it.
>> --
>> Jeremy Stanley
>>
>
>
>
> --
> Best regards,
> Dina
>



-- 
Best regards,
Dina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-infra/attachments/20130702/3c478eb8/attachment-0001.html>


More information about the OpenStack-Infra mailing list