ensure persist dir created for quiesce tests
Some of the quiesce tests require the persist directory be available
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ibbe67e9ac2c51b0f718112161094904d2a0c6fd5
diff --git a/test/elog_quiesce_test.cpp b/test/elog_quiesce_test.cpp
index 6537485..4675073 100644
--- a/test/elog_quiesce_test.cpp
+++ b/test/elog_quiesce_test.cpp
@@ -3,6 +3,7 @@
#include "elog_entry.hpp"
#include "log_manager.hpp"
+#include <filesystem>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/test/sdbus_mock.hpp>
@@ -25,6 +26,8 @@
TestQuiesceOnError() : manager(mockedBus, OBJ_INTERNAL)
{
+ // Ensure any errors serializing to filesystem have directory created
+ std::filesystem::create_directory(ERRLOG_PERSIST_PATH);
}
};