Save OS Inventory files as part of FFDC.

Resolves openbmc/openbmc-test-automation#849
Change-Id: I2b71adc41eacaf28047da9a3f478db15cde32171
Signed-off-by: Steven Sombar <ssombar@us.ibm.com>
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index 277aa17..a26af40 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -146,6 +146,7 @@
         'OS FFDC': 'OS FFDC Files',
         'Core Files': 'SCP Coredump Files',
         'SEL Log': 'Collect eSEL Log',
+        'Sys Inventory Files': 'System Inventory Files',
     },
 }
 
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index 3e7f922..6359c68 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -253,7 +253,6 @@
     \   ...  target=OS
 
 
-
 OS FFDC Files
     [Documentation]    Get the command list and iterate
     [Arguments]  ${OS_HOST}=${OS_HOST}  ${OS_USERNAME}=${OS_USERNAME}
@@ -289,6 +288,17 @@
     \   Log OS SPECIFIC DISTRO FFDC  ${index}  ${linux_distro}
 
 
+System Inventory Files
+    [Documentation]  Copy systest os_inventory files.
+    # The os_inventory files are the result of running
+    # systest/htx_hardbootme_test.  If these files exist
+    # they are copied to the FFDC directory.
+    # Global variable ffdc_dir_path is the path name of the
+    # directory they are copied to.
+    Copy Files  os_inventory_*.json  ${ffdc_dir_path}
+    Remove Files  os_inventory_*.json
+
+
 ##############################################################################
 SCP Coredump Files
     [Documentation]  Copy core dump file from BMC to local system.