Commit 8ff7922
[v1.10.x] Fabtests: Replace python in runfabtests.sh with python3 or python2
In RHEL8, python is no longer linked to python 2. Instead, it is
preferred that the user specifies python2 or python3 (rather than
symlinking or setting alternatives). Since our scripts look to be
compatible with either version, we check for both and use python3 by
default.
This also exits the runfabtests script if python is not detected rather
than proceeding on (I have seen some unusual bugs when continuing without
python).
Signed-off-by: William Zhang <[email protected]>
(cherry picked from commit a8a5a3e)1 parent 738805a commit 8ff7922
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | | - | |
| 85 | + | |
79 | 86 | | |
80 | | - | |
| 87 | + | |
81 | 88 | | |
82 | | - | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
0 commit comments