Home | History | Annotate | Download | only in firmware_IntegratedU2F
      1 # Copyright 2017 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 = "mruthven"
      8 NAME = "firmware_IntegratedU2F"
      9 PURPOSE = "Verify U2F"
     10 TIME = "SHORT"
     11 TEST_TYPE = "server"
     12 DEPENDENCIES = "servo"
     13 
     14 DOC = """
     15 Verify second-factor authentication (U2F) using the on-board cr50 firmware
     16 works.
     17 
     18 Run U2FTest on the DUT. Use servo to press the power button.
     19 """
     20 
     21 args_dict = utils.args_to_dict(args)
     22 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     23 
     24 def run(machine):
     25     host = hosts.create_host(machine, servo_args=servo_args)
     26 
     27     iterations = int(args_dict.get("iterations", 1))
     28 
     29     job.run_test("firmware_IntegratedU2F", host=host, cmdline_args=args)
     30 
     31 parallel_simple(run, machines)
     32