Skip the gbb flag update for unsupported boards.

Mario, alex, and zgb do not support the gbb flag update that
is used to lower the timeout for the dev mode screen.

BUG=None
TEST=Ran it

Change-Id: Ic0c63d2d32662bad61550b9a19137890af6d631b
Reviewed-on: https://gerrit.chromium.org/gerrit/39723
Tested-by: Kris Rambish <krisr@chromium.org>
Reviewed-by: Craig Harrison <craigdh@chromium.org>
diff --git a/server/site_tests/platform_ExternalUSBBootStress/platform_ExternalUSBBootStress.py b/server/site_tests/platform_ExternalUSBBootStress/platform_ExternalUSBBootStress.py
index 196d442..9d1f223 100644
--- a/server/site_tests/platform_ExternalUSBBootStress/platform_ExternalUSBBootStress.py
+++ b/server/site_tests/platform_ExternalUSBBootStress/platform_ExternalUSBBootStress.py
@@ -76,10 +76,20 @@
         logging.info('Connected devices list: %s' % diff_list)
         set_hub_power(True)
 
+        lsb_release = host.run('cat /etc/lsb-release').stdout.split('\n')
+        unsupported_gbb_boards = ['x86-mario', 'x86-alex', 'x86-zgb']
+        skip_gbb = False
+        for line in lsb_release:
+            m = re.match(r'^CHROMEOS_RELEASE_BOARD=(.+)$', line)
+            if m and m.group(1) in unsupported_gbb_boards:
+                skip_gbb = True
+                break
+
         logging.info('Rebooting the device %d time(s)' % reboots)
         for i in xrange(reboots):
             # We want fast boot past the dev screen
-            host.run('/usr/share/vboot/bin/set_gbb_flags.sh 0x01')
+            if not skip_gbb:
+                host.run('/usr/share/vboot/bin/set_gbb_flags.sh 0x01')
             stressor = stress.ControlledStressor(stress_hotplug)
             stressor.start()
             logging.info('Reboot iteration %d of %d' % (i + 1, reboots))