Clear dump directory during manufacturing clean
This commit clears the vpd dump directory in case of manufacturing
clean.The vpd dump directory contains invalid vpd files found during
parsing. These files need to be deleted when manufacturing clean is
executed.
Test:
```
1. Ensure vpd-manager has dumped 3 bad VPD files in the VPD dump
directory.
2. Execute vpd-tool --mfgClean --yes
3. After manufacturing clean is done, check return code, should be 0.
4. After manufacturing clean is done, check the VPD dump directory in
/var/lib/vpd. There should be no dumps directory inside.
```
Change-Id: Ic8079013e8b6608b2365b3ce874f0950bf50d77a
Signed-off-by: Souvik Roy <souvikroyofficial10@gmail.com>
diff --git a/vpd-tool/include/tool_constants.hpp b/vpd-tool/include/tool_constants.hpp
index 3201755..b813933 100644
--- a/vpd-tool/include/tool_constants.hpp
+++ b/vpd-tool/include/tool_constants.hpp
@@ -54,6 +54,7 @@
"xyz.openbmc_project.BIOSConfig.Manager";
constexpr auto KwdIM = "IM";
+constexpr auto badVpdPath = "/var/lib/vpd/dumps";
// Valid IM values list.
static std::vector<std::string> validImValues{