firmware_Mosys: Handle 'pd info' not being implemented

The top level mosys 'pd' command is being used for TCPC mux
information with 'pd port X' in addition to 'pd info' that is
used today for printing information about the Google EC based
USB PD chip.

This means that the 'pd' command will start showing up on
devices that do not support 'pd info' so we should also check
for the faft config item that indicates this type of usbpd
chip is present before assuming that 'pd info' will work.

BUG=b:35585876
TEST=pass firmware_Mosys test on eve

Change-Id: I7eea836b5b88f28fc41964e0ccb51ce566d83345
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/448106
Reviewed-by: danny chan <dchan@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
(cherry picked from commit 0e679a18be8d0f24c3bd2b9eaa3c6503e1ec5b58)
Reviewed-on: https://chromium-review.googlesource.com/450501
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: Freddy Paul <freddy.paul@intel.com>
Commit-Queue: Freddy Paul <freddy.paul@intel.com>
diff --git a/server/site_tests/firmware_Mosys/firmware_Mosys.py b/server/site_tests/firmware_Mosys/firmware_Mosys.py
index 69e80b0..dcd812c 100644
--- a/server/site_tests/firmware_Mosys/firmware_Mosys.py
+++ b/server/site_tests/firmware_Mosys/firmware_Mosys.py
@@ -249,7 +249,7 @@
 
         # f. mosys -k pd info
         command = 'mosys -k pd info'
-        if 'pd' in self.command_list:
+        if self.faft_config.chrome_usbpd and 'pd' in self.command_list:
           output = self.run_cmd(command)[0]
           p = re.compile('vendor="[a-z]+" name="[ -~]+" fw_version="(.*)"')
           v = p.match(output)