aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorGravatar Matthew Weber <matthew.weber@rockwellcollins.com>2018-02-02 14:57:13 -0600
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-02-06 14:54:36 +0100
commit68c8a1dd73da2ef6e0a1b7f3e07168ba48236e08 (patch)
tree2005c55cac069b1d72769ca43af9b48656ec8651 /web
parenta2478b2909fc287800df7bc28eaa88fcdebed33c (diff)
downloadbuildroot-test-68c8a1dd73da2ef6e0a1b7f3e07168ba48236e08.tar.gz
buildroot-test-68c8a1dd73da2ef6e0a1b7f3e07168ba48236e08.tar.bz2
web/import.inc.php: failure reason use build-time.log
When the make output doesn't parse to provide a result and unknown is assumed, check the build-time.log and see if the last line was a <stamp>:start:<pkgname>. IF so, use this pkgname instead before declaring unknown. This was tested against the ti-cgt-pru hang. http://autobuild.buildroot.net/results/60e/60e11a3bb90b9f41259e4a970081b72d8b8d100b// Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'web')
-rw-r--r--web/import.inc.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/web/import.inc.php b/web/import.inc.php
index 8eb3066..678128c 100644
--- a/web/import.inc.php
+++ b/web/import.inc.php
@@ -234,8 +234,15 @@ function import_result($buildid, $filename)
exec("tail -3 " . $thisbuildfinaldir . "build-end.log | grep -v '\[_all\]' | grep 'make.*: \*\*\*' | sed 's,.*\[\([^\]*\)\] Error.*,\\1,' | sed 's,.*/build/\([^/]*\)/.*,\\1,'", $tmp);
if (trim($tmp[0]))
$reason = $tmp[0];
- else
- $reason = "unknown";
+ else {
+ exec("tail -1 " . $thisbuildfinaldir . "build-time.log | grep :start: | cut -d':' -f4", $tmp);
+ if (trim($tmp[0])) {
+ print "Using build-time.log for reason[".trim($tmp[0])."]";
+ $reason = trim($tmp[0]);
+ } else {
+ $reason = "unknown";
+ }
+ }
}
$db = new db();