Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 70580e5

Browse files
committedJul 15, 2016
Add error handling
Add some initial error handling into the CI scripts Closes Issue ovn-org#69 Signed-off-by: Kyle Mestery <[email protected]>
1 parent e5742dd commit 70580e5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎ci/docker-rally.sh

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
XTRACE=$(set +o | grep xtrace)
55
set -o xtrace
66

7+
# Track failures
8+
FAILED=0
9+
710
OVS_REPO=${1:-https://github.com/openvswitch/ovs.git}
811
OVS_BRANCH=${2:-master}
912

@@ -12,13 +15,15 @@ echo "OVS_REPO=${OVS_REPO} OVS_BRANCH=${OVS_BRANCH}"
1215
# A combined script to run all the things
1316

1417
# Prepare the environment
15-
./prepare.sh
18+
./prepare.sh || FAILED=$(( $FAILED + 1 ))
1619

1720
# Run the testsuite
18-
./scale-run.sh $OVS_REPO $OVS_BRANCH
21+
./scale-run.sh $OVS_REPO $OVS_BRANCH || FAILED=$(( $FAILED + 1 ))
1922

2023
# Clean things up
21-
./scale-cleanup.sh
24+
./scale-cleanup.sh || FAILED=$(( $FAILED + 1 ))
25+
26+
return $FAILED
2227

2328
# Restore xtrace
2429
$XTRACE

0 commit comments

Comments
 (0)
Please sign in to comment.