Remove stale test screenshots before fetching new ones

This commit is contained in:
Alinson S. Xavier 2026-04-11 11:13:49 -05:00
parent 0ca4d46c43
commit 755c97a61a

View File

@ -273,6 +273,7 @@ android_test() {
log_error "Saving logcat: $OUT_LOGCAT..."
$ADB logcat -d > $OUT_LOGCAT
log_error "Fetching test screenshots..."
rm -rf ${ANDROID_OUTPUTS_DIR}/test-screenshots
run $ADB pull /sdcard/Android/data/${PACKAGE_NAME}/files/test-screenshots ${ANDROID_OUTPUTS_DIR}/
run $ADB shell rm -r /sdcard/Android/data/${PACKAGE_NAME}/files/test-screenshots/
return 1