Fix tests
This commit is contained in:
parent
922ae3dced
commit
1966c91e8e
1 changed files with 11 additions and 27 deletions
30
.github/scripts/run_tests.sh
vendored
30
.github/scripts/run_tests.sh
vendored
|
|
@ -1,27 +1,11 @@
|
||||||
#
|
echo "Settings transport to Seedvault..."
|
||||||
# SPDX-FileCopyrightText: 2023 The Calyx Institute
|
index=0
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
adb root
|
while [ $index -lt 60 ]; do
|
||||||
sleep 5
|
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport && break
|
||||||
adb remount
|
sleep 5
|
||||||
|
index=$((index + 1))
|
||||||
echo "Installing Seedvault app..."
|
done
|
||||||
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
|
|
||||||
|
|
||||||
D2D_BACKUP_TEST=$1
|
D2D_BACKUP_TEST=$1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue