aboutsummaryrefslogtreecommitdiff
path: root/tests/test_build.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-13 07:58:40 +0000
committerGerrit Code Review <review@openstack.org>2016-01-13 07:58:40 +0000
commitb73a096df48b084a8c27ea5dbed3af9db9e2dd4a (patch)
treecf34695918b91801eaa275e8635de5b5e454f413 /tests/test_build.py
parente6bb28f1a7643957d8f2ba6d516f55600efb620f (diff)
parent67e4607d43eb703bb4e5ac94fa4adf9fe43d31b8 (diff)
downloadkolla-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.py4
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)