lp:~yamahata/glance/lp802883
- Get this branch:
- bzr branch lp:~yamahata/glance/lp802883
Branch merges
- Christopher MacGown (community): Approve
- Jay Pipes (community): Approve
- Brian Lamar (community): Needs Information
-
Diff: 48 lines (+6/-3)3 files modifiedAuthors (+1/-0)
run_tests.py (+4/-2)
tests/unit/test_config.py (+1/-1)
Branch information
Recent revisions
- 148. By Isaku Yamahata
-
run_tests.py: make test runner accepts plugins
With this changeset, useful plugins are available
for unit test. Thus we can use debugger for unit tests with
say, --pdb, --pudb, ... - 147. By Isaku Yamahata
-
run_tests.py: make run_tests.py work.
Without this patch, the following exception occurs.
Traceback (most recent call last):
File "run_tests.py", line 280, in <module>
sys.exit(not core.run(config=c, testRunner=runner))
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 283, in run
return TestProgram(*arg, **kw).success
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 118, in __init__
**extra_args)
File "/usr/lib/python2. 6/unittest. py", line 817, in __init__
self.runTests()
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 197, in runTests
result = self.testRunner.run(self. test)
File "/home/yamahata/ openstack/ src/glance/ my/.glance- venv/lib/ python2. 6/site
ackages/nose/core. py", line 59, in run
result = self._makeResult()
File "run_tests.py", line 268, in _makeResult
self.config)
File "run_tests.py", line 183, in __init__
if colorizer.supported( ):
File "run_tests.py", line 92, in supported
curses.setupterm( ) - 146. By Isaku Yamahata
-
unit/test_
config. py: make it independent on sys.argv The first test in test_config.
TestConfig. test_parse_ options tests
no options are specified. But it checks sys.argv when default parameter
is used. So it fails when some parameter is passed to run_test.py.
So pass empty list to the parser as argument explicitly in order to
make it pass independent sys.argv. - 145. By Yuriy Taraday
-
Switch image_data to be a file-like object instead of bare string in image creating and updating
Without this Glance loads all image into memory, then copies it one time, then writes it to temp file, and only after all this copies image to target repository. - 143. By Justin Shepherd
-
rewrite of test_get_
head_simple_ post from tests/functiona l/test_ curl_api. py using httplib2. - 142. By Ewan Mellor
-
Bug #801703: No logging is configured for unit tests
Configure logging to go to stderr during the unit test run. This gets
captured by run_tests.sh into run_tests.err.log.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~hudson-openstack/glance/trunk