Skip to content

Commit

Permalink
Add error handling
Browse files Browse the repository at this point in the history
Add some initial error handling into the CI scripts

Closes Issue ovn-org#69

Signed-off-by: Kyle Mestery <[email protected]>
  • Loading branch information
mestery committed Jul 15, 2016
1 parent e5742dd commit 70580e5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ci/docker-rally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
XTRACE=$(set +o | grep xtrace)
set -o xtrace

# Track failures
FAILED=0

OVS_REPO=${1:-https://github.com/openvswitch/ovs.git}
OVS_BRANCH=${2:-master}

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

# Prepare the environment
./prepare.sh
./prepare.sh || FAILED=$(( $FAILED + 1 ))

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

# Clean things up
./scale-cleanup.sh
./scale-cleanup.sh || FAILED=$(( $FAILED + 1 ))

return $FAILED

# Restore xtrace
$XTRACE

0 comments on commit 70580e5

Please sign in to comment.