Home | History | Annotate | Download | only in enterprise_CFM_LogitechMeetupUpdater
      1 # Copyright 2018 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 from autotest_lib.server import utils
      6 
      7 AUTHOR = "shijinabraham (a] chromium.org"
      8 NAME = "enterprise_CFM_LogitechMeetupUpdater"
      9 TIME = "MEDIUM"
     10 TEST_CATEGORY = "Functional"
     11 TEST_CLASS = "enterprise"
     12 ATTRIBUTES = "suite:hotrod"
     13 TEST_TYPE = "server"
     14 JOB_RETRIES = 0
     15 DEPENDENCIES = "meetup"
     16 
     17 
     18 DOC = """
     19 This test verifies that the Logitech Meetup firmware updater is working
     20 as intended. This test performs the following
     21 - Make the rootfs writable.
     22 - Backup the original firmware.
     23 - Copy older firmware bundled with test.
     24 - Force upgrade the Meetup device to older firmware.
     25 - Powercycle the usb port to trigger the firmware updater.
     26 - Confirm firmware has been updated.
     27 - Cleanup
     28 This test will work on guado and fizz Chromeboxes with Logitech Meetup
     29 device connected
     30 """
     31 
     32 args_dict = utils.args_to_dict(args)
     33 
     34 def run_test(machine):
     35     host = hosts.create_host(machine, servo_args=None)
     36     job.run_test(NAME, host=host)
     37 
     38 parallel_simple(run_test, machines)
     39