summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2020-09-22 16:55:51 -0700
committerTim Burke <tim.burke@gmail.com>2020-09-22 16:55:54 -0700
commit2265056ff0a318aae0295ec22b99a9fd86844270 (patch)
tree66e134c65851b98160616bc78ebfaee1848e8799
parent1ce06c06796c1af721d3508f4c9a48b76a054581 (diff)
downloadpyeclib-2265056ff0a318aae0295ec22b99a9fd86844270.tar.gz
Fix gate
* Update pike to train * Fix pep8 * Mark jobs based on legacy jobs non-voting until we can replace them Change-Id: Ia83ad102bb5c096b01ce73bffb86d44732d2c784
-rw-r--r--.zuul.yaml4
-rw-r--r--pyeclib/utils.py2
-rw-r--r--test/test_pyeclib_c.py2
-rwxr-xr-xtools/test-setup.sh2
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