diff options
| author | Monty Taylor <mordred@inaugust.com> | 2010-07-15 14:07:51 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-07-15 14:07:51 +0000 |
| commit | 97665db528eecc3892beaaaacba2b9d1c3b7c5ea (patch) | |
| tree | e847e354b621f094c79c7f1fd31a5dc473f153d3 /nova | |
| parent | ea9b913ccceda5944c881f3ce9cadde39b0e0344 (diff) | |
| parent | 718c6ce2edeb3dbb96c8353200181f4a6b06a4d3 (diff) | |
| download | nova-97665db528eecc3892beaaaacba2b9d1c3b7c5ea.tar.gz nova-97665db528eecc3892beaaaacba2b9d1c3b7c5ea.tar.xz nova-97665db528eecc3892beaaaacba2b9d1c3b7c5ea.zip | |
Updates the test suite to work.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/crypto.py | 2 | ||||
| -rw-r--r-- | nova/tests/objectstore_unittest.py | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/nova/crypto.py b/nova/crypto.py index 80b4ef9de..114143baf 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -92,7 +92,7 @@ def ssl_pub_to_ssh_pub(ssl_public_key, name='root', suffix='nova'): + " transport | lsh-export-key --openssh" (out, err) = utils.execute(convert, ssl_public_key) if err: - raise exception.Error("Failed to generate key: %s", err) + raise exception.Error("Failed to generate key: %s" % err) return '%s %s@%s\n' %(out.strip(), name, suffix) diff --git a/nova/tests/objectstore_unittest.py b/nova/tests/objectstore_unittest.py index 89c1d59c5..17946bb2c 100644 --- a/nova/tests/objectstore_unittest.py +++ b/nova/tests/objectstore_unittest.py @@ -41,9 +41,12 @@ oss_tempdir = tempfile.mkdtemp(prefix='test_oss-') # delete tempdirs from previous runs (we don't delete after test to allow # checking the contents after running tests) -for path in glob.glob(os.path.abspath(os.path.join(oss_tempdir, '../test_oss-*'))): - if path != oss_tempdir: - shutil.rmtree(path) +# TODO: This fails on the test box with a permission denied error +# Also, doing these things in a global tempdir means that different runs of +# the test suite on the same box could clobber each other. +#for path in glob.glob(os.path.abspath(os.path.join(oss_tempdir, '../test_oss-*'))): +# if path != oss_tempdir: +# shutil.rmtree(path) # create bucket/images path |
