Skip to content

Commit 32d0cb0

Browse files
committed
Moving to python2 in systemvm runtests
1 parent e0a68a4 commit 32d0cb0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

systemvm/test/runtests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818

1919
# requires netaddr
2020

21-
which python
22-
python --version
21+
which python2
22+
python2 --version
2323

2424
export PYTHONPATH="../debian/opt/cloud/bin/"
2525
export PYTHONDONTWRITEBYTECODE=False
2626

2727
echo "Running pycodestyle to check systemvm/python code for errors"
28-
python -m pycodestyle --max-line-length=179 *py
29-
python -m pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../debian -name \*.py`
28+
python2 -m pycodestyle --max-line-length=179 *py
29+
python2 -m pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../debian -name \*.py`
3030
if [ $? -gt 0 ]
3131
then
3232
echo "pycodestyle failed, please check your code"
3333
exit 1
3434
fi
3535

3636
echo "Running pylint to check systemvm/python code for errors"
37-
python --version
37+
python2 --version
3838
pylint --version
3939
pylint --disable=R,C,W,E *.py
4040
pylint --disable=R,C,W,E `find ../debian -name \*.py`

0 commit comments

Comments
 (0)