commit | 7d9052c43ddefaf3818695805c6e78da4e357875 | [log] [tgz] |
---|---|---|
author | Roland Levillain <rpl@google.com> | Tue Aug 14 13:57:33 2018 +0100 |
committer | Roland Levillain <rpl@google.com> | Tue Aug 14 14:07:23 2018 +0100 |
tree | f847d9abcc4aa04b4124f43a20fbac8f68501cf0 | |
parent | bf414729f50f5b03d1a4df130547b3769ad18dd3 [diff] |
Speed up chroot process lookup in ART Buildbot tear-down script. Instead of executing "adb shell readlink" on every file matching the search pattern ("/proc/*/root") to find symbolic links to the chroot dir, filter the output of "adb shell ls -ld" and iterate on that sublist directly. Reduces the script execution time from 53s to 3s in local testing. Test: Rely on the ART Buildbot Bug: 34729697 Change-Id: Ib2ce38b37cdcec43c2ea966c89d13de794e91380