mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Fix VM halt task for acceptance tasks by CDing correctly
We were in the wrong dir before, we need to be in the qa dir to shutdown correctly Fixes #9651
This commit is contained in:
parent
870dc7dcf3
commit
fa39243442
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue