git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6375aed
)
autobuild: Only add last 100 lines of the log file.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 20 Aug 2011 10:41:10 +0000
(11:41 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 20 Aug 2011 10:41:51 +0000
(11:41 +0100)
contrib/autobuild/autobuild.sh
patch
|
blob
|
history
diff --git
a/contrib/autobuild/autobuild.sh
b/contrib/autobuild/autobuild.sh
index
6ec1bfc
..
c7b0fed
100755
(executable)
--- 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 ()
{
# 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
EOF
+ rm ../build.log.tail
}
# This function is called if the build is successful.
ok ()
{
}
# 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
}
EOF
}