Skip to content

Commit 1649d7f

Browse files
committed
add ssh integration ci
1 parent 5dc8c24 commit 1649d7f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example/run.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ for python_args in fmo.py \
88
./ttns/junction_zt.py \
99
"./ttns/junction_ft.py 32 1 100" \
1010
"./ttns/sbm_zt.py 050 001 050"\
11-
./ttns/sbm_ft.py
11+
./ttns/sbm_ft.py \
12+
./ssh.py
1213
do
1314
echo ============================$python_args=============================
1415
timeout 20s python $python_args
1516
exit_code=$?
1617
echo ============================$python_args=============================
1718
# 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
1922
echo "The script failed with exit code $exit_code" >&2
2023
code=1
2124
fi

0 commit comments

Comments
 (0)