FRU fields validation

Verifying the FRU's properties defined in YAML file for inventory.

Logic:
    1. Find the list of qualified FRU's from inventory.
    2. Iterate the FRU url and extract the fields.
    3. Compare the FRU properties set from system vs the derived
       FRU properties from YAML file (e.g. "data/inventory.py").
    4. Any mismatch would be a failure.

Resolves openbmc/openbmc-test-automation#417

Change-Id: I526c28e957fc8ff9cd46bacfd3ff108728f8550e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utilities.py b/lib/utilities.py
index 498348c..a68354c 100755
--- a/lib/utilities.py
+++ b/lib/utilities.py
@@ -231,3 +231,25 @@
     return row
 
 ###############################################################################
+
+
+###############################################################################
+def list_to_set(fru_list=""):
+    r"""
+    Pack the list into a set tuple and return.
+
+    It may seem that this function is rather trivial. However, it simplifies
+    the code and improves robot program readability and achieve the result
+    required.
+
+    Example result:
+
+    set(['Version', 'PartNumber', 'SerialNumber', 'FieldReplaceable',
+    'BuildDate', 'Present', 'Manufacturer', 'PrettyName', 'Cached', 'Model'])
+
+    # Description of arguments.
+    fru_list   List of FRU's elements.
+    """
+    return set(fru_list)
+
+###############################################################################