mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-26 16:11:56 +02:00
My previous commit fixed a presumed oversight where the "set -e" functionality had been disabled for the upload_file() function. But enabling it caused a problem for when sym_upload failed to upload the file -- which is why I had written all that retry code in the first place. We could trap the shell's "ERR" signal instead of exiting, but rather than complicating the script too much, I'm just removing the check. I also added a rudimentary testing mode to the script. I had a basic one that I used locally, but when I had to expand it to mimic a non-zero exit status, etc. I figured I might as well productize it. This can be enabled by passing "--testing" as the first argument to the script. BUG=chromium-os:29103 TEST=Ran with new --testing option and various parameters Change-Id: Ia10b4225d2db026839730510b31f7f4cdd101b98 Reviewed-on: https://gerrit.chromium.org/gerrit/19795 Tested-by: Michael Krebs <mkrebs@chromium.org> Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Michael Krebs <mkrebs@chromium.org>
Description
Languages
Shell
93.1%
Python
6.9%