mirror of
https://github.com/ActivityLauncher/ActivityLauncher.git
synced 2026-10-03 12:16:18 +00:00
ci: fix screenshot dir creation
This commit is contained in:
parent
bd8d139f75
commit
4ce4087572
2 changed files with 6 additions and 31 deletions
19
scripts/run_instrumented_tests.sh
Normal file → Executable file
19
scripts/run_instrumented_tests.sh
Normal file → Executable file
|
|
@ -1,23 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "Waiting for emulated storage to be mounted..."
|
||||
storage_ready=false
|
||||
for i in $(seq 1 30); do
|
||||
if adb shell ls /storage/emulated/0 >/dev/null 2>&1; then
|
||||
echo "Storage mounted."
|
||||
storage_ready=true
|
||||
break
|
||||
fi
|
||||
echo " attempt $i: storage not ready yet, waiting 2s..."
|
||||
sleep 2
|
||||
done
|
||||
if [ "$storage_ready" != "true" ]; then
|
||||
echo "ERROR: /storage/emulated/0 not mounted after 60s"
|
||||
exit 1
|
||||
fi
|
||||
# Wait for boot (android-emulator-runner already does this, but be safe)
|
||||
echo "Waiting for device..."
|
||||
adb wait-for-device
|
||||
|
||||
adb shell mkdir -p /storage/emulated/0/screenshots
|
||||
res=0
|
||||
./gradlew connectedOssNoadsDebugAndroidTest -PAPPID=de.szalkowski.activitylauncher.oss --build-cache || res=$?
|
||||
mkdir -p screenshots
|
||||
|
|
|
|||
18
scripts/run_upgrade_test.sh
Normal file → Executable file
18
scripts/run_upgrade_test.sh
Normal file → Executable file
|
|
@ -1,20 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "Waiting for emulated storage to be mounted..."
|
||||
storage_ready=false
|
||||
for i in $(seq 1 30); do
|
||||
if adb shell ls /storage/emulated/0 >/dev/null 2>&1; then
|
||||
echo "Storage mounted."
|
||||
storage_ready=true
|
||||
break
|
||||
fi
|
||||
echo " attempt $i: storage not ready yet, waiting 2s..."
|
||||
sleep 2
|
||||
done
|
||||
if [ "$storage_ready" != "true" ]; then
|
||||
echo "ERROR: /storage/emulated/0 not mounted after 60s"
|
||||
exit 1
|
||||
fi
|
||||
# Wait for boot (android-emulator-runner already does this)
|
||||
echo "Waiting for device..."
|
||||
adb wait-for-device
|
||||
|
||||
python3 scripts/test_upgrade_shortcut.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue