findmissing: use islink() for allowing broken symlink
os.path.exists() returns False for broken symbolic links. Ideally, the
symlink shouldn't break in GCE; however, it would break in local.
We don't care if the link is broken in local because we don't submit
fixes CLs from local.
Use islink() for allowing broken symlink.
BUG=b:223717399
BUG=b:240879180
TEST=./getopen -Ccd -b 5.15
Change-Id: Iee72da07191794d24084ebb7b0474f5bb0bf86fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3932642
Tested-by: Tzung-Bi Shih <tzungbi@chromium.org>
Commit-Queue: Tzung-Bi Shih <tzungbi@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
1 file changed