FIX: Perpatch PY3 25/23725/2
authorPeter Mikus <pmikus@cisco.com>
Mon, 2 Dec 2019 14:22:16 +0000 (14:22 +0000)
committerPeter Mikus <pmikus@cisco.com>
Mon, 2 Dec 2019 14:23:46 +0000 (14:23 +0000)
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Iae97cf4490fea38f5f03bdaa120ee7ae48b941ab

resources/libraries/bash/entry/check_crc.sh
resources/libraries/bash/function/per_patch.sh
resources/tools/scripts/perpatch_requirements.txt

index 6c91d28..798d29a 100644 (file)
@@ -41,5 +41,5 @@ set_perpatch_vpp_dir || die
 activate_virtualenv "${VPP_DIR}" || die
 # TODO: Create bash functions for the following one-liners?
 make json-api-files || die "Generation of .api.json files failed."
-python csit/resources/tools/integrated/check_crc.py
+python3 csit/resources/tools/integrated/check_crc.py
 # RuntimeError causes nonzero return code, to vote -1.
index b5bac78..919789b 100644 (file)
@@ -109,10 +109,10 @@ function compare_test_results () {
 
     cd "${VPP_DIR}" || die "Change directory operation failed."
     # Reusing CSIT main virtualenv.
-    pip install -r "${PYTHON_SCRIPTS_DIR}/perpatch_requirements.txt" || {
+    pip3 install -r "${PYTHON_SCRIPTS_DIR}/perpatch_requirements.txt" || {
         die "Perpatch Python requirements installation failed."
     }
-    python "${PYTHON_SCRIPTS_DIR}/compare_perpatch.py"
+    python3 "${PYTHON_SCRIPTS_DIR}/compare_perpatch.py"
     # The exit code determines the vote result.
 }
 
index 225d0d6..3fca076 100644 (file)
@@ -13,3 +13,4 @@
 
 # TODO: Convert to use the code from cloned CSIT git, not from pip.
 jumpavg==0.1.3
+ply==3.11