From 67e4607d43eb703bb4e5ac94fa4adf9fe43d31b8 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Fri, 8 Jan 2016 19:18:56 +0800 Subject: Add py27 py34 pypy unittest Change-Id: Iaf58463bd156924839062b8284a2d7151a153db5 --- tests/test_build.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_build.py') 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) -- cgit v1.2.3