File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,17 @@ for python_args in fmo.py \
8
8
./ttns/junction_zt.py \
9
9
" ./ttns/junction_ft.py 32 1 100" \
10
10
" ./ttns/sbm_zt.py 050 001 050" \
11
- ./ttns/sbm_ft.py
11
+ ./ttns/sbm_ft.py \
12
+ ./ssh.py
12
13
do
13
14
echo ============================$python_args =============================
14
15
timeout 20s python $python_args
15
16
exit_code=$?
16
17
echo ============================$python_args =============================
17
18
# if not the time out exit code or normal exit code
18
- if [ $exit_code -ne 124 ] && [ $exit_code -ne 0 ]; then
19
+ if [ $exit_code -ne 124 ]; then
20
+ echo " The script timed out" >&2
21
+ elif [ $exit_code -ne 0 ]; then
19
22
echo " The script failed with exit code $exit_code " >&2
20
23
code=1
21
24
fi
You can’t perform that action at this time.
0 commit comments