diff options
Diffstat (limited to 'run-tests-on-android.sh')
-rwxr-xr-x | run-tests-on-android.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run-tests-on-android.sh b/run-tests-on-android.sh index d85cca31..89c8c916 100755 --- a/run-tests-on-android.sh +++ b/run-tests-on-android.sh @@ -5,6 +5,9 @@ # # Copy the toybox tests across. +if [[ $(adb shell getprop ro.debuggable) == 1 ]]; then + adb shell su root rm -rf /data/local/tmp/toybox-tests/ +fi adb shell rm -rf /data/local/tmp/toybox-tests/ adb shell mkdir /data/local/tmp/toybox-tests/ adb push tests/ /data/local/tmp/toybox-tests/ |