Remove temp file should not fail if file is not on the device.
commita961848d3e53053acaf1c9ff338193326c915a62
authornavabi <navabi@google.com>
Tue, 16 Dec 2014 23:46:42 +0000 (16 15:46 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Dec 2014 23:47:17 +0000 (16 23:47 +0000)
tree6007973ad9c336fb7d4a2d46cfbc8fda6f3ef6e8
parent82d0b52f01af9184255d28d8c41a0a899bd8003a
Remove temp file should not fail if file is not on the device.

On post-ICS versions of Android 'rm -f' accomplishes this, but the -f option
does not exist on ICS leading to this error on the bots:
'rm failed for -f, No such file or directory'
Thus, instead of using -f, the script will let the rm fail and ignore it if the
file does not exist.

BUG=433143

Review URL: https://codereview.chromium.org/813543002

Cr-Commit-Position: refs/heads/master@{#308694}
build/android/pylib/utils/device_temp_file.py