Skip to content

Commit

Permalink
Fix VM halt task for acceptance tasks by CDing correctly
Browse files Browse the repository at this point in the history
We were in the wrong dir before, we need to be in the qa dir to shutdown correctly

Fixes elastic#9651
  • Loading branch information
andrewvc committed May 24, 2018
1 parent 9311f8b commit 03427d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/acceptance_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ SELECTED_TEST_SUITE=$1
# BUILD_ID unless you set this magic flag: https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller
export BUILD_ID=dontKillMe


QA_DIR="$PWD/qa"

# Always run the halt, even if the test times out or an exit is sent
cleanup() {
cd $QA_DIR
bundle exec rake qa:vm:halt
}
trap cleanup EXIT
Expand Down

0 comments on commit 03427d8

Please sign in to comment.