Merge "Update Pylint score (10/10) in Release notes"
authorCedric Ollivier <cedric.ollivier@orange.com>
Thu, 23 May 2019 18:31:18 +0000 (18:31 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 23 May 2019 18:31:18 +0000 (18:31 +0000)
docker/benchmarking/Dockerfile
docker/benchmarking/testcases.yaml
functest/ci/testcases.yaml
functest/opnfv_tests/openstack/vmtp/vmtp.py

index 57bc3ea..67f2b61 100644 (file)
@@ -15,7 +15,7 @@ RUN apk --no-cache add --update libxml2 libxslt && \
     CFLAGS="-O0" pip3 install --no-cache-dir -cupper-constraints.txt -cupper-constraints.opnfv.txt lxml && \
     git init /src/vmtp && \
     (cd /src/vmtp && \
-        git fetch --tags https://opendev.org/x/vmtp.git $VMTP_TAG && \
+        git fetch --tags https://review.opendev.org/x/vmtp.git $VMTP_TAG && \
         git checkout FETCH_HEAD) && \
     update-requirements -s --source /src/openstack-requirements /src/vmtp/ && \
     sed -i -E s/^tempest==+.*$/-e\ git+https:\\/\\/opendev.org\\/openstack\\/tempest#egg=tempest/ upper-constraints.txt && \
index eaa276c..eeb2091 100644 (file)
@@ -38,7 +38,6 @@ tiers:
             -
                 case_name: vmtp
                 project_name: functest
-                enabled: false
                 criteria: 100
                 blocking: false
                 description: >-
index e945138..24adbc4 100644 (file)
@@ -415,7 +415,6 @@ tiers:
             -
                 case_name: vmtp
                 project_name: functest
-                enabled: false
                 criteria: 100
                 blocking: false
                 description: >-
index 883f35d..71bda46 100644 (file)
@@ -104,7 +104,7 @@ class Vmtp(singlevm.VmReady2):
         if not os.path.exists(self.res_dir):
             os.makedirs(self.res_dir)
         cmd = ['vmtp', '-sc']
-        output = subprocess.check_output(cmd)
+        output = subprocess.check_output(cmd).decode()
         self.__logger.info("%s\n%s", " ".join(cmd), output)
         with open(self.config, "w+") as conf:
             vmtp_conf = yaml.full_load(output)
@@ -146,11 +146,12 @@ class Vmtp(singlevm.VmReady2):
         cmd = ['vmtp', '-d', '--json', '{}/vmtp.json'.format(self.res_dir),
                '-c', self.config]
         output = subprocess.check_output(
-            cmd, stderr=subprocess.STDOUT, env=new_env)
+            cmd, stderr=subprocess.STDOUT, env=new_env).decode()
         self.__logger.info("%s\n%s", " ".join(cmd), output)
         cmd = ['vmtp_genchart', '-c', '{}/vmtp.html'.format(self.res_dir),
                '{}/vmtp.json'.format(self.res_dir)]
-        output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
+        output = subprocess.check_output(
+            cmd, stderr=subprocess.STDOUT).decode()
         self.__logger.info("%s\n%s", " ".join(cmd), output)
         with open('{}/vmtp.json'.format(self.res_dir), 'r') as res_file:
             self.details = json.load(res_file)