Skip to content

Commit c7807cb

Browse files
wckzhangshijin-aws
authored andcommitted
[v1.10.x] Fabtests: Add check for python in runfabtests.sh
In order to prevent some possible issues with older systems, add a check for python in addition to python3 and python2. This should ensure that we're backward compatible. Signed-off-by: William Zhang <wilzhang@amazon.com> (cherry picked from commit e64a1e0)
1 parent 8ff7922 commit c7807cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabtests/scripts/runfabtests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ declare -i pass_count=0
7474
declare -i fail_count=0
7575
declare -i total_failures=0
7676

77-
python=$(which python3 2>/dev/null) || python=$(which python2 2>/dev/null)
77+
python=$(which python3 2>/dev/null) || python=$(which python2 2>/dev/null) || python=$(which python 2>/dev/null)
7878

7979
if [ $? -ne 0 ]; then
8080
echo "Unable to find python dependency, exiting..."

0 commit comments

Comments
 (0)