diff options
author | Andrew de los Reyes <adlr@chromium.org> | 2012-07-26 17:00:13 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-31 19:04:03 -0700 |
commit | a2fbe82d74038bc66f2904f1952c79e20783c79c (patch) | |
tree | f0a28793f4efca84b3620cc44051f5cee4fc9a15 /tools | |
parent | 4aa68a0ff1441df95a98f54f9a73907f0bda1946 (diff) | |
download | libchrome-gestures-a2fbe82d74038bc66f2904f1952c79e20783c79c.tar.gz |
replay_log: Small fix to work with older reports that lack some logs
BUG=chromium-os:33002
TEST=tested w/ older log
Change-Id: I467e5183a185bee4e02133ac2ef75787fb595677
Reviewed-on: https://gerrit.chromium.org/gerrit/28544
Commit-Ready: Andrew de los Reyes <adlr@chromium.org>
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/replay_log | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/replay_log b/tools/replay_log index 1f14234..763cbe8 100755 --- a/tools/replay_log +++ b/tools/replay_log @@ -116,10 +116,11 @@ expand_input_file() { # Expand to the bzip2ed file within zlogs="$(bzcat "$infile" | uudecode -o - | tar xvf -)" # take newest log and reduce to next case - mv "$(ls -t $zlogs | grep touchpad_activity | head -n 1)" log.gz + cp "$(ls -t $zlogs | grep touchpad_activity | head -n 1)" log.gz # Also expand evdev log - zcat "$(ls -t $zlogs | grep cmt_input_events | head -n 1)" > evlog.txt + zcat "$(ls -t $zlogs | grep cmt_input_events | head -n 1)" > evlog.txt \ + || true rm -f $zlogs infile="log.gz" |