Fix grab console log partial gets
The grab console log script started by cleaning out any existing console log files with echo. Unfortunately echo appends a newline by default which meant we ended up with a 1 byte file instead of a 0 byte file. This resulted in grabbing the console log from byte offset 1 instead of 0 and jenkins is weird and prepended base64 content at the beginning of the log file in this case. Fix this by using echo -n to clear the file which results in a 0 byte file. Change-Id: I8bd7cbd0c19cd44067839b34e317248daad9f578
This commit is contained in:
parent
8dd23151b6
commit
5bf316794f
@ -8,7 +8,8 @@ END_UUID=$(cat /proc/sys/kernel/random/uuid)
|
||||
echo "Grabbing consoleLog ($END_UUID)"
|
||||
|
||||
# Since we are appending to fetched logs, clear any possibly old runs
|
||||
echo > /tmp/console.html
|
||||
# Don't add a newline so we end up with a 0 byte file.
|
||||
echo -n > /tmp/console.html
|
||||
|
||||
# Grab the HTML version of the log (includes timestamps)
|
||||
TRIES=0
|
||||
|
Loading…
Reference in New Issue
Block a user