Fix regular expression check for vendor name

Some vendor names might include a hyphen (e.g. Hewlett-Packard)

BUG=chrome-os-partner:33045
TEST=firmware_Mosys test on zako

Change-Id: I639fb5ef5359e15f4ecfca8d825aabf0e564a4d7
Reviewed-on: https://chromium-review.googlesource.com/223727
Reviewed-by: Yusuf Mohsinally <mohsinally@chromium.org>
Commit-Queue: Mohammed Habibulla <moch@chromium.org>
Tested-by: Mohammed Habibulla <moch@chromium.org>
diff --git a/server/site_tests/firmware_Mosys/firmware_Mosys.py b/server/site_tests/firmware_Mosys/firmware_Mosys.py
index 5ef8615..c3ae0a7 100644
--- a/server/site_tests/firmware_Mosys/firmware_Mosys.py
+++ b/server/site_tests/firmware_Mosys/firmware_Mosys.py
@@ -147,7 +147,7 @@
         # Output will be GOOGLE until launch, see crosbug/p/29755
         command = 'mosys platform vendor'
         output = self.run_cmd(command)[0]
-        p = re.compile('^\w+$')
+        p = re.compile('^[-\w]+$')
         if not p.match(output):
             raise error.TestFail('output is not a string Expect GOOGLE'
                                  ' or name of maker.')