summaryrefslogtreecommitdiffstats
path: root/src/tools/scripts/ppeParseProcSbeFixed.pl
diff options
context:
space:
mode:
authorMatt K. Light <mklight@us.ibm.com>2018-05-09 09:18:29 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2018-06-23 00:39:28 -0400
commit02925f11e3e84adbace59896843330a72990a285 (patch)
tree3224eab685e1c134b3915625d4d08e4187c622a1 /src/tools/scripts/ppeParseProcSbeFixed.pl
parente1d29fc77510a36e64d57800177e0d1cabd1ddcf (diff)
downloadtalos-sbe-02925f11e3e84adbace59896843330a72990a285.tar.gz
talos-sbe-02925f11e3e84adbace59896843330a72990a285.zip
remove whitespace and newlines from target before processing
Change-Id: Id3b17da6b9a0adc26da72aa3e3779721d9f26085 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61038 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> (cherry picked from commit f8a3bdd8f4ffcbfbb791111dad9e7415bba23ceb) Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58570
Diffstat (limited to 'src/tools/scripts/ppeParseProcSbeFixed.pl')
-rwxr-xr-xsrc/tools/scripts/ppeParseProcSbeFixed.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/scripts/ppeParseProcSbeFixed.pl b/src/tools/scripts/ppeParseProcSbeFixed.pl
index 80c68afb..9ab01552 100755
--- a/src/tools/scripts/ppeParseProcSbeFixed.pl
+++ b/src/tools/scripts/ppeParseProcSbeFixed.pl
@@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2016
+# Contributors Listed Below - COPYRIGHT 2015,2018
# [+] International Business Machines Corp.
#
#
@@ -158,6 +158,10 @@ foreach my $entr (@{$entries->{entry}}) {
foreach my $target (@targets)
{
+ # Remove newlines and leading/trailing whitespace
+ $target =~ s/\n//;
+ $target =~ s/^\s+//;
+ $target =~ s/\s+$//;
if ($target eq "TARGET_TYPE_SYSTEM") {
OpenPOWER on IntegriCloud