aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-12-06 15:51:46 +0100
committerOliver Smith <osmith@sysmocom.de>2019-12-06 16:06:38 +0100
commitb0ba927e337987bb78f318f1866b08c98f1b91ed (patch)
tree3ea5cdae9ac9b6c82736274fa95321a5b36bc0ef /contrib
parentfb1dc7c405f6114687338382149bfc775597935a (diff)
Revert "Drop python2 support"
This reverts commit fb1dc7c405f6114687338382149bfc775597935a. I was under the impression, that all previous scripts were already working with python 3. But as it turns out, this isn't true. Reverting, so I can properly post follow-up patches, that fix the issues before we apply this "drop python2" patch again. Related: OS#2819 Change-Id: Ic1559d1a9f7839fa86a841d62a04b22e1caed466
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/jenkins.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 9b219f9..08908a4 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -4,6 +4,16 @@ set -ex
COM_FLAGS='-m compileall'
+# FIXME: remove once python 2 support is deprecated
+PY2=python2
+PY2_LIST="osmopy scripts/osmodumpdoc.py scripts/osmotestvty.py scripts/osmotestconfig.py"
+$PY2 ./setup.py install
+$PY2 tests/test_py2.py
+for f in $PY2_LIST
+do
+ $PY2 $COM_FLAGS $f
+done
+
rm -rf ./build
PY3=python3
PY3_LIST="osmopy scripts/osmo_ctrl.py scripts/osmo_rate_ctr2csv.py scripts/osmodumpdoc.py scripts/osmotestvty.py scripts/osmotestconfig.py scripts/osmo_interact_ctrl.py scripts/osmo_interact_vty.py scripts/osmo_verify_transcript_ctrl.py scripts/osmo_verify_transcript_vty.py scripts/soap.py scripts/twisted_ipa.py"