diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-01-13 07:58:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-01-13 07:58:40 +0000 |
| commit | b73a096df48b084a8c27ea5dbed3af9db9e2dd4a (patch) | |
| tree | cf34695918b91801eaa275e8635de5b5e454f413 /tests/test_build.py | |
| parent | e6bb28f1a7643957d8f2ba6d516f55600efb620f (diff) | |
| parent | 67e4607d43eb703bb4e5ac94fa4adf9fe43d31b8 (diff) | |
| download | kolla-b73a096df48b084a8c27ea5dbed3af9db9e2dd4a.tar.gz kolla-b73a096df48b084a8c27ea5dbed3af9db9e2dd4a.zip | |
Merge "Add py27 py34 pypy unittest"
Diffstat (limited to 'tests/test_build.py')
| -rw-r--r-- | tests/test_build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 6aaf98652..bfc334f96 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. +import os from mock import patch from os import path @@ -17,6 +18,7 @@ from oslo_log import fixture as log_fixture from oslo_log import log as logging from oslotest import base import six +import testtools import sys sys.path.append(path.abspath(path.join(path.dirname(__file__), '../tools'))) @@ -33,6 +35,8 @@ class BuildTest(base.BaseTestCase): logging.logging.INFO)) self.build_args = [__name__, "--debug"] + @testtools.skipUnless(os.environ.get('DOCKER_BUILD_TEST'), + 'Skip the docker build test') def runTest(self): with patch.object(sys, 'argv', self.build_args): LOG.info("Running with args %s", self.build_args) |
