diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-03-03 11:10:43 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-03-03 11:10:44 +0000 |
| commit | d571f8393987c07944a73b032bc572c22a2cf46a (patch) | |
| tree | 1b01c4cfadd749bfdb1856a68fbf530da7ce09a6 /kolla/tests | |
| parent | de3978b7026533c186f19a36a66bf733ac883c8d (diff) | |
| parent | 8b38c4d5c9f62b7cb42d8e885cea56f188ab9110 (diff) | |
| download | kolla-d571f8393987c07944a73b032bc572c22a2cf46a.tar.gz kolla-d571f8393987c07944a73b032bc572c22a2cf46a.zip | |
Merge "Add work-dir command-line option"
Diffstat (limited to 'kolla/tests')
| -rw-r--r-- | kolla/tests/test_build.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py index 1a1e019d5..7bcd2de7f 100644 --- a/kolla/tests/test_build.py +++ b/kolla/tests/test_build.py @@ -349,6 +349,13 @@ class KollaWorkerTest(base.TestCase): results = kolla.summary() self.assertEqual(None, results['failed'][0]['status']) + @mock.patch('shutil.copytree') + def test_work_dir(self, copytree_mock): + self.conf.set_override('work_dir', '/tmp/foo') + kolla = build.KollaWorker(self.conf) + kolla.setup_working_dir() + self.assertEqual('/tmp/foo/docker', kolla.working_dir) + class MainTest(base.TestCase): |
