summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/parser
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-03-29 13:30:02 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-03-30 16:52:53 -0400
commit711723bcb25f9462da10d70564826d78b61fcc3f (patch)
tree7dc6c4721609d1e900b0f052d824f426a0e882a4 /src/usr/errl/parser
parent5139c57aa414a8aef0e44826621eb64206b81e3a (diff)
downloadtalos-hostboot-711723bcb25f9462da10d70564826d78b61fcc3f.tar.gz
talos-hostboot-711723bcb25f9462da10d70564826d78b61fcc3f.zip
Ignore dummy files when parsing error log data
Hit a problem where the patch process was leaving around files ending in .orig that would be noticed by our error log data generator script. The script then reports a duplicate id and fails the build. The fix is to only look at files that end in H or h. Change-Id: I816c080eb6690075cedce7c5f13c9c40a1af3d93 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56479 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl/parser')
-rwxr-xr-xsrc/usr/errl/parser/genErrlParsers.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/usr/errl/parser/genErrlParsers.pl b/src/usr/errl/parser/genErrlParsers.pl
index e0da36c07..ff9bb8461 100755
--- a/src/usr/errl/parser/genErrlParsers.pl
+++ b/src/usr/errl/parser/genErrlParsers.pl
@@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2013,2017
+# Contributors Listed Below - COPYRIGHT 2013,2018
# [+] Google Inc.
# [+] International Business Machines Corp.
#
@@ -1171,9 +1171,11 @@ sub getReasonCodeFiles
getReasonCodeFiles($dirEntryPath);
}
}
- elsif(($dirEntry =~ /reasoncodes/i) ||
- ($dirEntry =~ /service_codes/i) ||
- ($dirEntry =~ /examplerc/i))
+ elsif( (($dirEntry =~ /reasoncodes/i) ||
+ ($dirEntry =~ /service_codes/i) ||
+ ($dirEntry =~ /examplerc/i))
+ # Only look at header files (protects against scratch files)
+ && ($dirEntry =~ /[Hh]$/) )
{
# Found reason-codes file
push(@reasonCodeFiles, $dirEntryPath);
OpenPOWER on IntegriCloud