Merge lp:~jaypipes/nova/bug615906 into lp:~hudson-openstack/nova/trunk
Status: | Merged |
---|---|
Approved by: | Eric Day |
Approved revision: | 221 |
Merged at revision: | 246 |
Proposed branch: | lp:~jaypipes/nova/bug615906 |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
73 lines (+57/-3) 1 file modified
run_tests.sh (+57/-3) |
To merge this branch: | bzr merge lp:~jaypipes/nova/bug615906 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Day (community) | Approve | ||
Soren Hansen (community) | Needs Fixing | ||
termie | Pending | ||
Review via email: mp+32391@code.launchpad.net |
This proposal supersedes a proposal from 2010-08-11.
Commit message
No longer installs a virtualenv automatically and adds new options to bypass the interactive prompt.
Description of the change
Makes a few changes to the run_tests.sh script:
1) No longer installs a virtualenv automatically. The default
behaviour (running script with no options) is to assume the
user wishes to run the test suite(s) in a virtualenv, but to
ask the user if they wish to create a virtualenv if one does
not already exist
2) Adds -V command line option to override the interactive prompt
and automatically create a virtualenv if not found
3) Adds -N command line option to override the interactive prompt
and only run the tests in the local environment, and never create
a virtualenv
> +function process_option {
> + option=$1
> + case $option in
> + --help) usage;;
> + -h) usage;;
> + -V) let always_venv=1; let never_venv=0;;
> + --virtual-env) let always_venv=1; let never_venv=0;;
> + -N) let always_venv=0; let never_venv=1;;
> + --no-virtual-env) let always_venv=0; let never_venv=1;;
> + esac
> +}
Can you group these options, please? Something like:
case "$option" in no-virtual- env) other blah;;
-h|--help) usage;;
-V|--virtual-env) blah;;
-N|--
esac
It makes it clearer that those options really are the same. Other than
that, it looks fine.
review needsfixing
-- www.ubuntu. com/
Soren Hansen
Ubuntu Developer
http://