Fix tests
This commit is contained in:
parent
922ae3dced
commit
1966c91e8e
1 changed files with 11 additions and 27 deletions
28
.github/scripts/run_tests.sh
vendored
28
.github/scripts/run_tests.sh
vendored
|
|
@ -1,27 +1,11 @@
|
|||
#
|
||||
# SPDX-FileCopyrightText: 2023 The Calyx Institute
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
echo "Settings transport to Seedvault..."
|
||||
index=0
|
||||
|
||||
adb root
|
||||
while [ $index -lt 60 ]; do
|
||||
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport && break
|
||||
sleep 5
|
||||
adb remount
|
||||
|
||||
echo "Installing Seedvault app..."
|
||||
adb shell mkdir -p /system/priv-app/Seedvault
|
||||
adb push app/build/outputs/apk/release/app-release.apk /system/priv-app/Seedvault/Seedvault.apk
|
||||
|
||||
echo "Installing Seedvault permissions..."
|
||||
adb push permissions_com.stevesoltys.seedvault.xml /system/etc/permissions/privapp-permissions-seedvault.xml
|
||||
adb push allowlist_com.stevesoltys.seedvault.xml /system/etc/sysconfig/allowlist-seedvault.xml
|
||||
|
||||
echo "Rebooting emulator..."
|
||||
adb reboot
|
||||
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
|
||||
|
||||
echo "Setting Seedvault transport..."
|
||||
sleep 10
|
||||
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport
|
||||
index=$((index + 1))
|
||||
done
|
||||
|
||||
D2D_BACKUP_TEST=$1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue