Skip to content

Commit

Permalink
add ssh integration ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtong1000 committed Nov 18, 2024
1 parent 5dc8c24 commit 1649d7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ for python_args in fmo.py \
./ttns/junction_zt.py \
"./ttns/junction_ft.py 32 1 100" \
"./ttns/sbm_zt.py 050 001 050"\
./ttns/sbm_ft.py
./ttns/sbm_ft.py \
./ssh.py
do
echo ============================$python_args=============================
timeout 20s python $python_args
exit_code=$?
echo ============================$python_args=============================
# if not the time out exit code or normal exit code
if [ $exit_code -ne 124 ] && [ $exit_code -ne 0 ]; then
if [ $exit_code -ne 124 ]; then
echo "The script timed out" >&2
elif [ $exit_code -ne 0 ]; then
echo "The script failed with exit code $exit_code" >&2
code=1
fi
Expand Down

0 comments on commit 1649d7f

Please sign in to comment.