Skip to content

Commit

Permalink
INTERNAL: Update test-framework to use python3 and refresh its mo…
Browse files Browse the repository at this point in the history
…dule versions
  • Loading branch information
caladd committed Dec 5, 2019
1 parent 20c517f commit f90c768
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
7 changes: 1 addition & 6 deletions test-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ SHELL = /bin/bash
.DEFAULT_GOAL = environment
.PHONY = environment clean

bin/pip: VERSION = 15.1.0

bin/pip:
curl --retry 10 -fsO `curl --retry 10 -fs https://pypi.org/pypi/virtualenv/$(VERSION)/json | grep -o -E '"url":"https://files.pythonhosted.org/packages/[0-9a-f]+/[0-9a-f]+/[0-9a-f]+/virtualenv-$(VERSION).tar.gz"' | head -n 1 | cut -d '"' -f 4`
tar xvzf virtualenv-$(VERSION).tar.gz
python2.7 virtualenv-$(VERSION)/virtualenv.py venv
rm -rf virtualenv-$(VERSION)/ virtualenv-$(VERSION).tar.gz
python3 -m venv venv
ln -s venv/bin bin

environment: bin/pip
Expand Down
18 changes: 5 additions & 13 deletions test-framework/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
ansible==2.8.4
asn1crypto==0.24.0
bcrypt==3.1.7
cffi==1.12.3
cryptography==2.7
enum34==1.1.6
idna==2.8
ipaddress==1.0.22
Jinja2==2.10.1
ansible==2.9.1
cffi==1.13.2
cryptography==2.8
Jinja2==2.10.3
MarkupSafe==1.1.1
paramiko==2.6.0
pyasn1==0.4.7
pycparser==2.19
PyNaCl==1.3.0
PyYAML==5.1.2
six==1.12.0
six==1.13.0
2 changes: 1 addition & 1 deletion test-framework/test-suites/integration/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ done
if [[ $COVERAGE -eq 1 ]]
then
# Figure out which .coveragerc to pass
STACKI_ISO=$(cat .cache/state.json | python -c 'import sys, json; print json.load(sys.stdin)["STACKI_ISO"]')
STACKI_ISO=$(cat .cache/state.json | python3 -c 'import sys, json; print(json.load(sys.stdin)["STACKI_ISO"])')
if [[ $(basename $STACKI_ISO) =~ sles12\.x86_64\.disk1\.iso ]]
then
COVERAGERC="sles.coveragerc"
Expand Down
2 changes: 1 addition & 1 deletion test-framework/test-suites/unit/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
if [[ $1 == "--coverage" ]]
then
# Figure out which .coveragerc to pass
STACKI_ISO=$(cat .cache/state.json | python -c 'import sys, json; print json.load(sys.stdin)["STACKI_ISO"]')
STACKI_ISO=$(cat .cache/state.json | python3 -c 'import sys, json; print(json.load(sys.stdin)["STACKI_ISO"])')
if [[ $(basename $STACKI_ISO) =~ sles12\.x86_64\.disk1\.iso ]]
then
COVERAGERC="sles.coveragerc"
Expand Down

0 comments on commit f90c768

Please sign in to comment.