pseq: Add BMC dump method to Services class
Add a method to the Services class to create a BMC dump.
Tested:
* Delete all BMC dumps on system
* Verify no BMC dumps exist
* Call method to create a BMC dump
* Verify dump is created
* Expand dump
* Verify dump has expected contents
* Call method to create a BMC dump again
* Verify a second dump is created
Change-Id: Ia4b9753e9ba15ed61bf5446006713875e738b3dd
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/test/mock_services.hpp b/phosphor-power-sequencer/test/mock_services.hpp
index 6c0d906..40937e2 100644
--- a/phosphor-power-sequencer/test/mock_services.hpp
+++ b/phosphor-power-sequencer/test/mock_services.hpp
@@ -59,6 +59,7 @@
return std::make_unique<MockPMBus>();
}
+ MOCK_METHOD(void, createBMCDump, (), (override));
MOCK_METHOD(void, clearCache, (), (override));
};