Skip to content

Commit

Permalink
remove whitespace and newlines from target before processing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mklight authored and sgupta2m committed Jun 23, 2018
1 parent e1d29fc commit 02925f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tools/scripts/ppeParseProcSbeFixed.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
# Contributors Listed Below - COPYRIGHT 2015,2016
# Contributors Listed Below - COPYRIGHT 2015,2018
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -158,6 +158,10 @@

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") {

Expand Down

0 comments on commit 02925f1

Please sign in to comment.