diff --git a/test.sh b/test.sh index 29d3451..b4d94a7 100755 --- a/test.sh +++ b/test.sh @@ -136,7 +136,7 @@ function test_simple_upgrade() { function test_simple_backup() { echo "--- Running simple backup test ---" - _vagrant_ssh "sudo yunohost backup create --ignore-hooks --apps $APP_NAME $VERBOSE_OPT" + _vagrant_ssh "sudo yunohost backup create --name mattermost-test-backup --ignore-hooks --apps $APP_NAME $VERBOSE_OPT" } function test_simple_remove() { @@ -146,8 +146,7 @@ function test_simple_remove() { function test_simple_restore() { echo "--- Running simple restore test ---" - _vagrant_ssh "sudo yunohost backup list | cut -d ' ' -f 2 > backup_name" - _vagrant_ssh "sudo yunohost backup restore \$(cat backup_name) --force --ignore-hooks --apps $APP_NAME $VERBOSE_OPT" + _vagrant_ssh "sudo yunohost backup restore mattermost-test-backup --force --ignore-hooks --apps $APP_NAME $VERBOSE_OPT" _assert_mattermost_frontpage_up "$DOMAIN" }