Skip to content

Commit f70c41b

Browse files
authored
Merge pull request #24551 from drodriguez/android-allow-skipping-clean
[android] Allow skipping adb_clean.py
2 parents 41689dd + f0eece3 commit f70c41b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/android/adb_clean.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
# See https://swift.org/LICENSE.txt for license information
1010
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111

12+
import os
13+
1214
from adb.commands import DEVICE_TEMP_DIR, reboot, rmdir
1315

1416

1517
if __name__ == '__main__':
16-
reboot()
17-
rmdir(DEVICE_TEMP_DIR)
18+
if 'SKIP_ANDROID_CLEAN' not in os.environ:
19+
reboot()
20+
rmdir(DEVICE_TEMP_DIR)

0 commit comments

Comments
 (0)