manual unit_tests.html mentions non existing option for run_tests.sh

Bug #1219040 reported by Peter Mooshammer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Joe Gordon

Bug Description

Database
Some of the unit tests make queries against an sqlite database [3]. By default, the test database (tests.sqlite) is deleted and recreated each time run_tests.sh is invoked (This is equivalent to using the -r, --recreate-db flag). To reduce testing time if a database already exists it can be reused by using the flag:

-n, --no-recreate-db

this option is not available in run_tests.sh.

Tags: nova
Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi Peter,

Where can we find this document?

Changed in openstack-manuals:
status: New → Incomplete
Revision history for this message
Peter Mooshammer (pmoosh) wrote :

Hello tom,

Here is the link:
http://docs.openstack.org/developer/nova/devref/unit_tests.html

The help information is also outdated.

Sorry - should have put it in the original description

thx

Peter

Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: Incomplete → Confirmed
importance: Undecided → Medium
tags: added: nova
Revision history for this message
Peter Mooshammer (pmoosh) wrote :

Hello,

I think there more wrong here - doc states:

Because run_tests.sh is a wrapper around nose, it also accepts the same flags as nosetests. See the nose options documentation for details about these additional flags.

but I think nose isn't used. Instead run_tests.sh starts testr. Can this be confirmed?

thx

Peter

yelu (yeluaiesec)
Changed in openstack-manuals:
assignee: nobody → yelu (yeluaiesec)
yelu (yeluaiesec)
Changed in openstack-manuals:
status: Confirmed → In Progress
yelu (yeluaiesec)
Changed in openstack-manuals:
status: In Progress → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

Yelu, you set this to "in progress" but I'm not seeing any patch here. I'm also removing you since we have bugday and haven't seen any action. Feel free to grab it again ;)

Changed in openstack-manuals:
status: In Progress → Confirmed
assignee: yelu (yeluaiesec) → nobody
no longer affects: openstack-manuals
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/92041

Andrew Laski (alaski)
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Joe Gordon (jogo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/92041
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3a2e65c4bf351f78e36f7b78fecf190900008899
Submitter: Jenkins
Branch: master

commit 3a2e65c4bf351f78e36f7b78fecf190900008899
Author: Joe Gordon <email address hidden>
Date: Sun May 4 20:14:38 2014 -0700

    Shrink devref.unit_tests, since info is in wiki.

    Don't keep a copy of the run_tests.sh flag list here since it
    inevitably will get out of sync with the real list.

    No need to go into detail on how unit testing is set up, since we already have a wiki
    on how to run tests that applies for all OpenStack projects. Keep
    section with tox examples since that is the most commonly used command.

    Change-Id: Ia8eb059be164d9df3edfd69aedcebfd028da45ff
    Related-Bug: 1219040

Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.