Skip to content

Commit 40fc1c9

Browse files
committed
added forced failure
1 parent 9ed8195 commit 40fc1c9

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

entrypoint.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,34 @@
33
# run test-site
44
if [[ $2 == *"test"* ]]
55
then
6-
cursion test-site $3 --api-key=$1
6+
{
7+
cursion test-site $3 --api-key=$1
8+
} || {
9+
echo "Test Failed" &&
10+
exit 1
11+
}
712
fi
813

914
# run run-case
1015
if [[ $2 == *"case"* ]]
1116
then
12-
cursion run-case $3 $4 --api-key=$1 $6
17+
{
18+
cursion run-case $3 $4 --api-key=$1 $6
19+
} || {
20+
echo "Case Failed" &&
21+
exit 1
22+
}
23+
1324
fi
1425

1526
# run run-flow
1627
if [[ $2 == *"flow"* ]]
1728
then
18-
cursion run-flow $3 $5 --api-key=$1
29+
{
30+
cursion run-flow $3 $5 --api-key=$1
31+
} || {
32+
echo "Flow Failed" &&
33+
exit 1
34+
}
35+
1936
fi

0 commit comments

Comments
 (0)