summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSaqib Khan <khansa@us.ibm.com>2017-04-04 11:07:07 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-04-09 12:03:11 +0000
commit77420d2617215bc8e39bc515d439759d8616e5e6 (patch)
tree3d0e2c47cc1eaf7d824200645eccd7108567879e /test
parent268616bfdc26859e9e4a4e6f0983ef164491162d (diff)
downloadopenpower-pnor-code-mgmt-77420d2617215bc8e39bc515d439759d8616e5e6.tar.gz
openpower-pnor-code-mgmt-77420d2617215bc8e39bc515d439759d8616e5e6.zip
Read image version from the MANIFEST.
According to Patrick, all information regarding the image must be read from the MANIFEST, such as version. Also we must never open/read pnor.toc. Change-Id: Icf9f83f9ec055de21e2cf13e4ab4ab4afafc2af7 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/utest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utest.cpp b/test/utest.cpp
index 4da45a5f4..4fd1e78ed 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -37,17 +37,17 @@ class VersionTest : public testing::Test
/** @brief Make sure we correctly get the version from getVersion()*/
TEST_F(VersionTest, TestGetVersion)
{
- auto tocFilePath = _directory + "/" + "pnor.toc";
+ auto manifestFilePath = _directory + "/" + "MANIFEST";
auto version = "test-version";
std::ofstream file;
- file.open(tocFilePath, std::ofstream::out);
+ file.open(manifestFilePath, std::ofstream::out);
ASSERT_TRUE(file.is_open());
file << "version=" << version << std::endl;
file.close();
- EXPECT_EQ(Version::getVersion(tocFilePath), version);
+ EXPECT_EQ(Version::getVersion(manifestFilePath), version);
}
/** @brief Make sure we correctly get the Id from getId()*/
OpenPOWER on IntegriCloud