From c0a7f4a9b5a147a2d75908403afa76efab8d863e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 29 Dec 2019 11:35:09 +0100 Subject: [PATCH] Switch generate_fsm_test.sh to Python 3 Switch the non-default Python versions to Python 3 too, using Python 3.5 as minimum version (older Python 3 versions are already EOL). --- src/tests/generate_fsm_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/generate_fsm_test.sh b/src/tests/generate_fsm_test.sh index 6d26947..7ce60ba 100755 --- a/src/tests/generate_fsm_test.sh +++ b/src/tests/generate_fsm_test.sh @@ -48,8 +48,8 @@ GENERATE_FSM="$TOOLS_DIR/generate_fsm.py" EXPECTED="`cat $OUTPUT_FILE`" if [ -z "$EXPECTED" ]; then die "Error reading $OUTPUT_FILE"; fi -# Let's make sure the script works with python2.2 and above -for PYTHON in "" "python2.2" "python2.3" "python2.4" "python2.5" "python2.6"; do +# Let's make sure the script works with python3.5 and above +for PYTHON in "" "python3.5" "python3.6" "python3.7" "python3.8" "python3.9"; do # Skip the versions of python that are not installed. if [ -n "$PYTHON" ]; then $PYTHON -h >/dev/null 2>/dev/null || continue