From 02925f11e3e84adbace59896843330a72990a285 Mon Sep 17 00:00:00 2001 From: "Matt K. Light" Date: Wed, 9 May 2018 09:18:29 -0500 Subject: remove whitespace and newlines from target before processing Change-Id: Id3b17da6b9a0adc26da72aa3e3779721d9f26085 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61038 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta (cherry picked from commit f8a3bdd8f4ffcbfbb791111dad9e7415bba23ceb) Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58570 --- src/tools/scripts/ppeParseProcSbeFixed.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tools/scripts/ppeParseProcSbeFixed.pl') 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") { -- cgit v1.2.1