summaryrefslogtreecommitdiffstats
path: root/test/openpower-pels/pel_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/openpower-pels/pel_utils.hpp')
-rw-r--r--test/openpower-pels/pel_utils.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/openpower-pels/pel_utils.hpp b/test/openpower-pels/pel_utils.hpp
index 7475720..262a6e7 100644
--- a/test/openpower-pels/pel_utils.hpp
+++ b/test/openpower-pels/pel_utils.hpp
@@ -26,6 +26,26 @@ class CleanLogID : public ::testing::Test
static std::filesystem::path pelIDFile;
};
+class CleanPELFiles : public ::testing::Test
+{
+ protected:
+ static void SetUpTestCase()
+ {
+ pelIDFile = openpower::pels::getPELIDFile();
+ repoPath = openpower::pels::getPELRepoPath();
+ }
+
+ static void TearDownTestCase()
+ {
+ std::filesystem::remove_all(
+ std::filesystem::path{pelIDFile}.parent_path());
+ std::filesystem::remove_all(repoPath);
+ }
+
+ static std::filesystem::path pelIDFile;
+ static std::filesystem::path repoPath;
+};
+
/**
* @brief Tells the factory which PEL to create
*/
OpenPOWER on IntegriCloud