c64c7691127702131959e57f830c1cd977954e24
Commit Graph

61 Commits

Author SHA1 Message Date
James E. Blair
5235106e95 Rename .nova-venv to .venv.
This simplifies a number of Jenkins jobs which currently, other
than directory names, could be the same for all OpenStack
projects. By renaming the virtualenv directory, the redundant
Jenkins virtualenv build and copy jobs can be eliminated.
Change-Id: Ieaf1dac3207ecb34b911c7edcd2086809abdf49e
2011年12月08日 15:17:51 -08:00
Jenkins
0b28e574af Merge "First steps towards consolidating testing infrastructure" 2011年12月07日 18:13:48 +00:00
Duncan McGreggor
f845891184 First steps towards consolidating testing infrastructure
This commit begins to implement blueprint consolidate-testing-infrastructure by
adding a 'testing' subpackage and moving some modules into it.
Change-Id: I04bf860bc386bd2016e7dbc5a6f6ef7379a855bb
2011年12月06日 09:37:57 -08:00
Mark McLoughlin
0bbb0e8cb1 Remove some remnants of ChangeLog and vcsversion.py generation
Since moving to bzr, we no longer generate ChangeLog and vcsversion.py
and since commit deb31cb55 we no longer even have the bzr specific code
for generating them. So, let's just remove any references to them.
Change-Id: I4f96b9be48e289f9129ae8e3ad4cbc1b22db07d2
2011年12月06日 12:08:43 +00:00
Lorin Hochstein
b08bd96ce5 Optional --no-site-packages in venv
Added a flag to run_tests.sh to allow user to optionally install venv with --no-site-packages.
This fixes bug 880905
Change-Id: Ic645e0ec56c90b72fef526ebc9f55975d446e2ae
2011年10月30日 11:06:10 -04:00
Rick Harris
f225ea4f2f Deallocate ip if build fails.
Fixes LP837687
Change-Id: I7c0ea900225024e69a0265c430724930ce7b892d
2011年09月30日 10:33:15 -05:00
Monty Taylor
21dcf669c7 Fix outstanding pep8 errors for a clean trunk.
Also, add an option to run_tests.sh to skip running pep8. We have a separate
job in Jenkins which runs pep8, so there's no need to spin our wheels on it
during the test run.
Change-Id: I552330994e55a36fa96b63658493ed30e2720c85
2011年09月23日 10:26:22 -04:00
Ewan Mellor
07cbdbedca Bug #835952 : pep8 failures do not cause the tests to fail
Add set -eu to run_tests.sh. This will cause it to fail whenever anything
goes wrong, which is exactly what we want in a test script.
To do this, I had to remove the use of the "let" keyword, which has a bizarre
exit status in bash.
I also removed the "|| exit" after run_tests, which means that this script
will now exit with status 1, not status 0, if run_tests fails.
2011年08月28日 16:19:55 +05:30
Christopher MacGown
91eaa64750 Fix ugly little violations before someone says anything 2011年08月12日 14:33:27 -07:00
Christopher MacGown
3f82580b98 Merge config_drive with trunk 2011年08月12日 14:23:10 -07:00
Christopher MacGown
d963e25906 Config-Drive happiness, minus smoketest 2011年07月22日 20:29:37 -07:00
Lorin Hochstein
85ba5628d6 Slight indentation change 2011年07月21日 10:47:34 -04:00
Lorin Hochstein
6e59df9151 Added call to second coverage invocation 2011年07月21日 10:43:20 -04:00
Lorin Hochstein
eed00e5c82 Fixed an issue where was invoked before it was defined in the case of a venv 2011年07月21日 10:30:55 -04:00
Lorin Hochstein
90c8a7c73d Zapped an extra newline 2011年07月19日 11:04:36 -04:00
Lorin Hochstein
05751530cd Add support for generating local code coverage report 2011年07月19日 10:52:38 -04:00
Thierry Carrez
7c270b077a Silence warning in case tests.sqlite doesn't exist 2011年07月04日 17:31:24 +02:00
Vishvananda Ishaya
c6e220af60 change the default to recreate the db but allow -n for faster tests 2011年06月29日 07:47:51 -07:00
Vishvananda Ishaya
9978d656d2 only create the db if it doesn't exist, add an option -r to run_tests.py to delete it 2011年06月25日 17:26:38 -07:00
Rick Harris
43dd1ec608 Showing elapsed time is now default 2011年06月15日 01:21:11 +00:00
Rick Harris
e20444542a Ensuring pep8 runs even when nose optons are passed 2011年06月15日 01:16:53 +00:00
Rick Harris
3368a35ff9 Removing seconds unit 2011年06月15日 00:08:19 +00:00
Rick Harris
00071a6e0b Adds --show-elapsed option for run_tests 2011年06月14日 01:21:08 +00:00
Alex Meade
d4742cf850 Added virtual environment to PEP8 tests 2011年06月07日 16:08:25 -04:00
Justin Shepherd
67148b1093 Added opt-out system for excluding files/dirs from pep8 (using GLOBIGNORE). 2011年05月16日 20:08:51 -05:00
Justin Shepherd
e2a1258458 Removed tools/clean_vlans and tools/nova-debug from pep8 tests as they are shell scripts 2011年05月16日 08:26:39 -05:00
Justin Shepherd
93fad121c2 Added lines to include tools/* (except ajaxterm) in pep8 tests 2011年05月16日 08:23:10 -05:00
Alex Meade
1a25bb43f6 Since run_tests.sh utilizes nose to run its tests, the -x, --stop flag works correctly for halting tests on the first failed test. The usage information for run_tests.sh now includes the --stop flag. 2011年05月02日 19:17:09 +00:00
Alex Meade
10552f691b Updated run_tests.sh usage info to reflect the --stop flag 2011年04月26日 13:22:24 -04:00
Naveed Massjouni
2ea651dad0 Exit early if tests fail, before pep8 is run. 2011年04月20日 16:27:33 -04:00
Naveed Massjouni
33ca304f4c Changed pep8 command line option from --just-pep8 to --pep8. 2011年04月13日 12:46:51 -04:00
Naveed Massjouni
14833117f1 Added an option to run_tests.sh so you can run just pep8. So now you can:
./run_tests.sh --just-pep8
or
 ./run_tests.sh -p
2011年04月06日 18:17:43 -04:00
Rick Harris
c8345c9ebc Merging trunk, small fixes 2011年02月25日 01:31:02 +00:00
Vishvananda Ishaya
3aa0183bca fix missed err.log 2011年02月23日 18:54:13 -08:00
Vishvananda Ishaya
5e2f82b148 revert logfile redirection and make colors work by temporarily switching stdout 2011年02月23日 15:29:02 -08:00
Vishvananda Ishaya
f4c95e1f18 merged trunk 2011年02月23日 15:27:54 -08:00
termie
dbb77c920c Adds some features to run_tests.sh:
- if it crashes right away with a short erorr log, print that directly
- allow specifying tests without the nova.tests part
2011年02月23日 18:46:38 +00:00
Justin Santa Barbara
70bc1d4280 Initial support for per-instance metadata, though the OpenStack API. Key/value pairs can be specified at instance creation time and are returned in the details view. Support limits based on quota system. 2011年02月23日 18:11:35 +00:00
termie
2bbbfc5af6 dump error output directly on short import errors 2011年02月23日 08:46:11 -08:00
Vishvananda Ishaya
0f402b72cb update based on prereq branch 2011年02月21日 16:22:09 -08:00
Vishvananda Ishaya
71f7119910 remove changes to test db 2011年02月21日 16:05:28 -08:00
Justin Santa Barbara
9a7213b615 Initial support for per-instance metadata, though the OpenStack API. Key/value pairs can be specified at instance creation time and are returned in the details view. Support limits based on quota system. 2011年02月17日 15:00:18 -08:00
Rick Harris
8dceaccb81 Typo fixes 2011年02月17日 07:58:42 +00:00
Rick Harris
585ba4d6cf Putting glance plugin under pep8 control 2011年02月16日 18:43:55 +00:00
termie
86b96d377c Only run pep8 after tests if running all the tests 2011年01月30日 21:55:32 -08:00
Soren Hansen
2c75ad02c5 Exclude vcsversion.py from pep8 check. It's not compliant, but out of our control. 2011年01月20日 01:23:57 +01:00
Soren Hansen
96a7787874 Return non-zero if either unit tests or pep8 fails. 2011年01月19日 23:15:20 +01:00
Soren Hansen
50ec058cc7 Refactor run_tests.sh to allow us to run an extra command after the tests.
Run pep8 after unit tests in run_tests.sh.
Fix setup.py to be PEP-8 compliant.
2011年01月19日 10:50:54 +01:00
termie
2ed57981b1 merge from upstream and fix conflicts 2010年12月28日 13:43:35 -08:00
termie
7e469690f0 Output of run_tests.sh to be closer to trial 2010年12月28日 01:40:24 -08:00