PLDM: Automate test scenarios for pldmtool commands - phase 1
Test scenarios:
- Verify GetDateTime
- Verify SetDateTime
Resolves openbmc-test-automation/issues/#1998
Change-Id: I7b302a30f37041cef87c53560004cdd900c897a8
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/data/pldm_variables.py b/data/pldm_variables.py
index b2e9e6e..b7447af 100755
--- a/data/pldm_variables.py
+++ b/data/pldm_variables.py
@@ -4,6 +4,7 @@
Contains PLDM-related constants.
"""
+PLDM_SUPPORTED_TYPES = ['base', 'platform', 'bios']
# PLDM types.
PLDM_TYPE_BASE = {'VALUE': '00', 'STRING': 'base'}
@@ -83,8 +84,6 @@
# PLDM command format.
-CMD_GETPLDMTYPES = 'base GetPLDMTypes'
-
'''
e.g. : GetPLDMVersion usage
@@ -114,4 +113,10 @@
' 0x00 0x00 0x00 0x00 0x%s 0x%s' # %(TransferOperationFlag, PLDMType)
-PLDM_SUPPORTED_TYPES = ['base', 'platform', 'bios']
+'''
+e.g. : SetDateTime usage
+
+pldmtool bios SetDateTime -d <YYYYMMDDHHMMSS>
+
+'''
+CMD_SETDATETIME = 'bios SetDateTime -d %s'