mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
test: remove package_check lock on abort
This commit is contained in:
parent
45e0de61ae
commit
080364503b
1 changed files with 11 additions and 0 deletions
11
test.sh
11
test.sh
|
@ -56,6 +56,17 @@ function test_package_check() {
|
|||
_vagrant_ssh "package_check/package_check.sh --bash-mode '$APP_DIR'"
|
||||
}
|
||||
|
||||
function abort() {
|
||||
trap - SIGINT SIGTERM
|
||||
echo "--- Aborting ---"
|
||||
if (vagrant status | grep -q "running"); then
|
||||
echo "Removing package_check lock…"
|
||||
_vagrant_ssh "rm -f package_check/pcheck.lock"
|
||||
fi
|
||||
teardown
|
||||
}
|
||||
trap abort SIGINT SIGTERM
|
||||
|
||||
function teardown() {
|
||||
echo "--- Cleaning up ---"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue