Skip to content

Commit

Permalink
minor fix of test-create-xxx
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Jul 25, 2024
1 parent 99e6711 commit 97712b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/cases/tm2tm/scripts/test-create-channel-fail-unexist
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ r=$?

if [ $r -eq 101 ]; then
echo "$(basename $0): success"
cp $CONFIG.tmp $CONFIG
mv $CONFIG.tmp $CONFIG
exit 0
else
echo "$(basename $0): fail: $r"
Expand Down
6 changes: 3 additions & 3 deletions tests/cases/tm2tm/scripts/test-create-client-fail-unexist
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ EOF
r=$?

if [ $r -eq 101 ]; then
echo "success"
cp $CONFIG.tmp $CONFIG
echo "$(basename $0): success"
mv $CONFIG.tmp $CONFIG
exit 0
else
echo "fail: $r"
echo "$(basename $0): fail: $r"
exit 1
fi

Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ if [ "$NEW_DST_CLIENT_ID" != "$OLD_DST_CLIENT_ID" ]; then
exit 1
fi

cp $CONFIG.tmp $CONFIG
mv $CONFIG.tmp $CONFIG
5 changes: 3 additions & 2 deletions tests/cases/tm2tm/scripts/test-create-connection-fail-unexist
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ EOF
r=$?

if [ $r -eq 101 ]; then
echo "success"
echo "$(basename $0): success"
mv $CONFIG.tmp $CONFIG
exit 0
else
echo "fail: $r"
echo "$(basename $0): fail: $r"
exit 1
fi

0 comments on commit 97712b7

Please sign in to comment.