diff options
| author | Patrick Venture <venture@google.com> | 2019-06-21 07:55:54 -0700 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2019-06-21 08:36:22 -0700 |
| commit | 9f937c45938ea4d0ec596a4edf9182f11519fae3 (patch) | |
| tree | 8610dba236092c661972c295f159a3f55bbbfbf4 /tools/test | |
| parent | de73c3b744b0dad098cd46fecd84eab37ed066be (diff) | |
| download | phosphor-ipmi-flash-9f937c45938ea4d0ec596a4edf9182f11519fae3.tar.gz phosphor-ipmi-flash-9f937c45938ea4d0ec596a4edf9182f11519fae3.zip | |
tools: add support for ubi tarball from host
Add a parameter that specifies the layout type, static or ubitar.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I86c09d8ffeb55ba789279d2568b579a44b3923d7
Diffstat (limited to 'tools/test')
| -rw-r--r-- | tools/test/tools_updater_unittest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/test/tools_updater_unittest.cpp b/tools/test/tools_updater_unittest.cpp index a2ba2df..85f86bc 100644 --- a/tools/test/tools_updater_unittest.cpp +++ b/tools/test/tools_updater_unittest.cpp @@ -110,7 +110,7 @@ TEST_F(UpdaterTest, UpdateMainReturnsSuccessIfAllSuccess) EXPECT_CALL(handler, verifyFile(ipmi_flash::updateBlobId)) .WillOnce(Return(true)); - updaterMain(&handler, image, signature); + updaterMain(&handler, image, signature, "static"); } TEST_F(UpdaterTest, UpdateMainCleansUpOnFailure) @@ -126,7 +126,8 @@ TEST_F(UpdaterTest, UpdateMainCleansUpOnFailure) .WillOnce(Return(false)); EXPECT_CALL(handler, cleanArtifacts()).WillOnce(Return()); - EXPECT_THROW(updaterMain(&handler, image, signature), ToolException); + EXPECT_THROW(updaterMain(&handler, image, signature, "static"), + ToolException); } } // namespace host_tool |

