22 строки
819 B
Bash
Executable File
22 строки
819 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# ghe-restore command tests run in parallel
|
|
set -e
|
|
|
|
# Currently disabled on macOS due to rsync issues
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
echo "Skipping $(basename "$0") tests as they are temporarily disabled on macOS: https://github.com/github/backup-utils/issues/841"
|
|
exit 0
|
|
fi
|
|
|
|
export GHE_PARALLEL_ENABLED=yes
|
|
|
|
# use temp dir to fix rsync file issues in parallel execution:
|
|
# we are imitating remote server by local files, and running rsync in parallel may cause
|
|
# race conditions when two processes writing to same folder
|
|
parallel_rsync_tempdir=$(mktemp -d -t backup-utils-restore-temp-XXXXXX)
|
|
export GHE_EXTRA_RSYNC_OPTS="--copy-dirlinks --temp-dir=$parallel_rsync_tempdir"
|
|
|
|
TESTS_DIR="$PWD/$(dirname "$0")"
|
|
# shellcheck source=test/test-ghe-restore.sh
|
|
. "$TESTS_DIR/test-ghe-restore.sh"
|