summaryrefslogtreecommitdiffstats
path: root/src/build/buildpnor/PnorUtils.pm
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2019-08-27 15:31:01 -0500
committerWilliam G Hoffa <wghoffa@us.ibm.com>2019-09-12 16:25:00 -0500
commit2ceefa09677d7182b021e0fe52a544cc4fe66b11 (patch)
treece7c3aa6cc454f66806048a16c4fc8327729829c /src/build/buildpnor/PnorUtils.pm
parent26c32cba61641b57dd3dbe93e20c40dd26441613 (diff)
downloadtalos-hostboot-2ceefa09677d7182b021e0fe52a544cc4fe66b11.tar.gz
talos-hostboot-2ceefa09677d7182b021e0fe52a544cc4fe66b11.zip
Do not allow PNOR partition adjustments when not in test mode
In some cases we were seeing confusing error messages while building pnor images in op-build that pointed at the wrong partition being the problem. This was caused by some logic that automatically adjusts the size of the HBI partition to handle our testcase environment. Change-Id: Ib6089ca9a0c68d4c8814fe7a36404096b42837b7 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82952 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Zachary Clark <zach@ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/buildpnor/PnorUtils.pm')
-rw-r--r--src/build/buildpnor/PnorUtils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/buildpnor/PnorUtils.pm b/src/build/buildpnor/PnorUtils.pm
index 6128c298b..7011910f9 100644
--- a/src/build/buildpnor/PnorUtils.pm
+++ b/src/build/buildpnor/PnorUtils.pm
@@ -431,7 +431,7 @@ sub checkSpaceConstraints
{
# If this is a test run increase HBI size by PAGE_SIZE until all test
# cases fit
- if ($eyeCatch eq "HBI")
+ if ( $testRun && ($eyeCatch eq "HBI") )
{
print "Adjusting HBI size - ran out of space for test cases\n";
adjustSecPhysSize(\%sectionHash, $layoutKey, $filesize);
OpenPOWER on IntegriCloud