summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoseph Hwang <josephsih@chromium.org>2012-06-11 11:16:55 +0800
committerGerrit <chrome-bot@google.com>2012-06-11 20:17:09 -0700
commite7ebc99d01d74fa53569f6e551622e42ebf3ba22 (patch)
tree534c525f23fc6298b4787d192b0ab88b6d30b831 /tools
parentd6f71088c0e177931ad141e5b2f2376c0364b11b (diff)
downloadlibchrome-gestures-e7ebc99d01d74fa53569f6e551622e42ebf3ba22.tar.gz
replay_log: assign downloaded LOG_FILE to infile when success
When downloading a log from the feedback site, if it succeeds, assign the downloaded LOG_FILE to infile. Otherwise, the following script cannot open the LOG_FILE for further processing. Note that if the same command is run the 2nd time, it would execute normally because it uses another block of statements if the LOG_FILE already exists. BUG=chromium-os:31516 TEST=Try the following command. It should succeed at the first time. (cr) $ tools/replay_log --only_honor "" https://feedback.corp.googleusercontent.com/binarydata/report-291598177-system_logs.bz2 Change-Id: I562d51b488f86b79408129b2c67610717cec4415 Reviewed-on: https://gerrit.chromium.org/gerrit/24966 Reviewed-by: Andrew de los Reyes <adlr@chromium.org> Commit-Ready: Joseph Shyh-In Hwang <josephsih@chromium.org> Tested-by: Joseph Shyh-In Hwang <josephsih@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/replay_log1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/replay_log b/tools/replay_log
index 02155f4..27298ca 100755
--- a/tools/replay_log
+++ b/tools/replay_log
@@ -78,6 +78,7 @@ binarydata/${LOG_FILE}?id=${LOG_IDNUM}&logIndex=0"
TYPE="$(file "$LOG_FILE")"
if [[ "$TYPE" = *bzip2* ]]; then
# download success
+ infile="$LOG_FILE"
break
fi
rm -f "$LOG_FILE"