From 2265056ff0a318aae0295ec22b99a9fd86844270 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 22 Sep 2020 16:55:51 -0700 Subject: Fix gate * Update pike to train * Fix pep8 * Mark jobs based on legacy jobs non-voting until we can replace them Change-Id: Ia83ad102bb5c096b01ce73bffb86d44732d2c784 --- .zuul.yaml | 4 ++-- pyeclib/utils.py | 2 +- test/test_pyeclib_c.py | 2 +- tools/test-setup.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index d75f12a..cd7efad 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -15,8 +15,6 @@ - openstack-tox-py36 - openstack-tox-py37 - pyeclib-tox-py27-centos-7 - - libec-pyeclib-unit-centos-7 - - libec-pyeclib-unit - job: name: pyeclib-tox-py27-centos-7 @@ -36,6 +34,7 @@ required-projects: - openstack/liberasurecode - openstack/pyeclib + voting: false - job: name: libec-pyeclib-unit @@ -45,3 +44,4 @@ required-projects: - openstack/liberasurecode - openstack/pyeclib + voting: false diff --git a/pyeclib/utils.py b/pyeclib/utils.py index e3b04a7..accbcc5 100644 --- a/pyeclib/utils.py +++ b/pyeclib/utils.py @@ -51,7 +51,7 @@ def import_class(import_str): __import__(mod_str) return getattr(sys.modules[mod_str], class_str) except (ValueError, AttributeError): - raise ImportError('Class %s cannot be found (%)' % + raise ImportError('Class %s cannot be found (%s)' % (class_str, traceback.format_exception(*sys.exc_info()))) diff --git a/test/test_pyeclib_c.py b/test/test_pyeclib_c.py index 04e2444..478dcda 100644 --- a/test/test_pyeclib_c.py +++ b/test/test_pyeclib_c.py @@ -152,7 +152,7 @@ class TestPyECLib(unittest.TestCase): whole_file_bytes = self.get_tmp_file(file_size).read() timer.start() - for l in range(iterations): + for i in range(iterations): pyeclib_c.encode(handle, whole_file_bytes) tsum = timer.stop_and_return() diff --git a/tools/test-setup.sh b/tools/test-setup.sh index e005569..152dc58 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -15,7 +15,7 @@ function is_rhel7 { if is_rhel7; then # Install CentOS OpenStack repos so that we have access to some extra # packages. - sudo yum install -y centos-release-openstack-pike + sudo yum install -y centos-release-openstack-train # Now that RDO repositories are enabled, install missing # packages. sudo yum install -y liberasurecode-devel yasm -- cgit v1.2.1