summaryrefslogtreecommitdiffstats
path: root/src/tools/scripts
diff options
context:
space:
mode:
authorMatt K. Light <mklight@us.ibm.com>2018-06-25 12:02:52 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2018-06-26 04:31:14 -0400
commitc2f19a1bfda6839566353e4c16c6a02ac6eb9108 (patch)
tree7e2b2c8aeab014a687667f0119cd8f5882406ed9 /src/tools/scripts
parentbd0b22cd5586c3d97be40d02c786b762b009ef72 (diff)
downloadtalos-sbe-c2f19a1bfda6839566353e4c16c6a02ac6eb9108.tar.gz
talos-sbe-c2f19a1bfda6839566353e4c16c6a02ac6eb9108.zip
remove whitespace and newlines from target before processing
Change-Id: Ib376268c58360b4cb5684603486397a492fb7f94 Signed-off-by: Matt K. Light <mklight@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61344 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 ffcc8708c85a0aa5348e9ef024f439d413ab739b) Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61292 Tested-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/tools/scripts')
-rwxr-xr-xsrc/tools/scripts/ppeSetFixed.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/scripts/ppeSetFixed.pl b/src/tools/scripts/ppeSetFixed.pl
index a562469d..c769ac1f 100755
--- a/src/tools/scripts/ppeSetFixed.pl
+++ b/src/tools/scripts/ppeSetFixed.pl
@@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2016
+# Contributors Listed Below - COPYRIGHT 2015,2018
# [+] International Business Machines Corp.
#
#
@@ -129,6 +129,11 @@ 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") {
push(@attrSystemIds, $entr);
OpenPOWER on IntegriCloud