Skip to content

Commit 76ab9a5

Browse files
authored
test(backup): Use --no-prompt for backup tests (#2618)
1 parent bf66ddd commit 76ab9a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_integration-test/ensure-backup-restore-works.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo "Creating backup..."
1010
# to group and owner. Instead, try creating the empty file and then give everyone write access to the backup file
1111
touch $(pwd)/sentry/backup.json
1212
chmod 666 $(pwd)/sentry/backup.json
13-
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh export global /sentry-admin/backup.json
13+
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh export global /sentry-admin/backup.json --no-prompt
1414
if [ ! -s "$(pwd)/sentry/backup.json" ]; then
1515
echo "Backup file is empty"
1616
exit 1
@@ -31,6 +31,6 @@ source install/set-up-and-migrate-database.sh
3131
$dc up -d
3232

3333
echo "Importing backup..."
34-
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh import global /sentry-admin/backup.json
34+
SENTRY_DOCKER_IO_DIR=$(pwd)/sentry /bin/bash $(pwd)/sentry-admin.sh import global /sentry-admin/backup.json --no-prompt
3535

3636
rm $(pwd)/sentry/backup.json

0 commit comments

Comments
 (0)