mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In normal cases, adb_clean.py cleaning the temporal directory is a good idea because all the tests run in a clean state, and previous executions do not influence the current one. However, when iterating and running only one or two tests with utils/run-test, removing all the artifacts and uploading them to the device can turn each iteration into waiting a couple of minutes. Since the changes in between tests should only touch a couple of libraries (or none at all, if the test itself is the modification), avoiding a full clean is beneficial. The commit modifies `adb_clean.py` to allow providing the environment variable `SKIP_ANDROID_CLEAN`, which will simply not execute the script. Since the introduction of #24146, only the modified artifacts will be uploaded, and the test iteration can be very fast (including no time, if there are no changes).
631 B
631 B