Skip to content

Commit 24fe60a

Browse files
committed
running tests using python 3 (instead of python 2)
1 parent f98a4ee commit 24fe60a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ else
105105

106106
# Setup python environment
107107
echo "############### Setting up python env"
108-
virtualenv pyenv
108+
virtualenv --python=/usr/bin/python3 pyenv
109109
source pyenv/bin/activate
110110
pip install testgres==1.8.2
111111

@@ -118,10 +118,10 @@ else
118118

119119
if [ "$TEST_CASE" = "all" ]; then
120120
# Run all pg_probackup ptrack tests
121-
python -m unittest -v tests.ptrack || status=$?
121+
python3 -m unittest -v tests.ptrack || status=$?
122122
else
123123
for i in `seq $TEST_REPEATS`; do
124-
python -m unittest -v tests.ptrack.PtrackTest.$TEST_CASE || status=$?
124+
python3 -m unittest -v tests.ptrack.PtrackTest.$TEST_CASE || status=$?
125125
done
126126
fi
127127

0 commit comments

Comments
 (0)