Changeset 103276 in vbox
- Timestamp:
- Feb 8, 2024 12:08:47 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testboxscript/setup.sh
r103205 r103276 237 237 "${TESTBOXSCRIPT_PYTHON}" "${TESTBOXSCRIPT_DIR}/testboxscript/testboxscript.py" --version > /dev/null 238 238 if [ $? -ne 2 ]; then 239 echo "$0: error: testboxscript.py didn't respon scorrectly to the --version option."239 echo "$0: error: testboxscript.py didn't respond correctly to the --version option." 240 240 exit 1; 241 241 fi … … 243 243 "${TESTBOXSCRIPT_PYTHON}" "${TESTBOXSCRIPT_DIR}/testboxscript/testboxscript_real.py" --version > /dev/null 244 244 if [ $? -ne 2 ]; then 245 echo "$0: error: testboxscript.py didn't respon scorrectly to the --version option."245 echo "$0: error: testboxscript.py didn't respond correctly to the --version option." 246 246 exit 1; 247 247 fi … … 670 670 MY_PYTHON_VER_TEST="\ 671 671 import sys;\ 672 x = sys.version_info[0] == 3 or (sys.version_info[0] == 2 and (sys.version_info[1] >= 6 or (sys.version_info[1] == 5 and sys.version_info[2] >= 1)));\672 x = (sys.version_info[0] == 3 and sys.version_info[1] >= 5) or (sys.version_info[0] == 2 and sys.version_info[1] >= 7);\ 673 673 sys.exit(not x);\ 674 674 "; 675 for python in python [2:3].[0:] #python3.11 python3.10 python3.9 python2.6 python2.5python;675 for python in python3.{30..5} python3 python2.7 python2 python; 676 676 do 677 python=`which ${python} 2> /dev/null` 677 # python=`which ${python} 2> /dev/null` 678 python=`command -v ${python} 2> /dev/null` 678 679 if [ -n "${python}" -a -x "${python}" ]; then 679 680 if ${python} -c "${MY_PYTHON_VER_TEST}"; then
Note:
See TracChangeset
for help on using the changeset viewer.