diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-08-20 11:41:10 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-08-20 11:41:51 +0100 |
commit | ca727deac186981f4d9784696324c8f3af79f9e5 (patch) | |
tree | dcf01badc3fb4f49d9af3cd1ce1ccaa5e4dc610c /contrib | |
parent | 6375aede61d57422ad82f4941693493c07b78aa2 (diff) | |
download | libguestfs-ca727deac186981f4d9784696324c8f3af79f9e5.tar.gz libguestfs-ca727deac186981f4d9784696324c8f3af79f9e5.tar.xz libguestfs-ca727deac186981f4d9784696324c8f3af79f9e5.zip |
autobuild: Only add last 100 lines of the log file.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/autobuild/autobuild.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/contrib/autobuild/autobuild.sh b/contrib/autobuild/autobuild.sh index 6ec1bfc4..c7b0fedb 100755 --- a/contrib/autobuild/autobuild.sh +++ b/contrib/autobuild/autobuild.sh @@ -60,16 +60,25 @@ cd "$directory" # This function is called if any step fails. failed () { - mutt -s "$prefix libguestfs $version FAILED $1" "$mailto" -a ../build.log <<EOF -Autobuild failed. See the attached log file. + tail -100 ../build.log > ../build.log.tail + mutt -s "$prefix libguestfs $version FAILED $1" "$mailto" -a ../build.log.tail <<EOF +Autobuild failed. The last 100 lines of the build log are +attached. + +For the full log see the build machine, in +$tmpdir/build.log EOF + rm ../build.log.tail } # This function is called if the build is successful. ok () { - mutt -s "$prefix libguestfs $version ok" "$mailto" -a ../build.log <<EOF -Autobuild was successful. The full log file is attached. + mutt -s "$prefix libguestfs $version ok" "$mailto" <<EOF +Autobuild was successful. + +For the full log see the build machine, in +$tmpdir/build.log EOF } |