mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Merge pull request #55 from YunoHost-Apps/no-copy
test: use symlinked app directory directly
This commit is contained in:
commit
d1bd96210b
1 changed files with 1 additions and 11 deletions
12
test.sh
12
test.sh
|
@ -9,8 +9,7 @@ set -e
|
|||
|
||||
# Configuration constants
|
||||
APP_NAME="mattermost"
|
||||
TESTS_DIR="/home/vagrant/tests"
|
||||
APP_DIR="$TESTS_DIR/app"
|
||||
APP_DIR="/vagrant"
|
||||
DOMAIN="ynh-tests.local"
|
||||
VM_ROOT_PASSWORD="alpine"
|
||||
YUNOHOST_ADMIN_PASSWORD="alpine"
|
||||
|
@ -111,15 +110,6 @@ function setup() {
|
|||
echo "--- Saving Vagrant snapshot ---"
|
||||
vagrant snapshot save yunohost-jessie-pristine
|
||||
fi
|
||||
|
||||
# Copy the files inside the VM, rather than using the mounted
|
||||
# files directly.
|
||||
# This avoids tests screwing up our files if something goes wrong.
|
||||
echo "--- Copying app content into the box ---"
|
||||
if ! [ -d "$APP_DIR" ]; then
|
||||
_vagrant_ssh "mkdir -p '$TESTS_DIR'"
|
||||
_vagrant_ssh "cp -R '/vagrant' '$APP_DIR'"
|
||||
fi
|
||||
}
|
||||
|
||||
function test_simple_install() {
|
||||
|
|
Loading…
Add table
Reference in a new issue