1# Copyright 2022 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 5AUTHOR = "hbarnor, Chromium OS" 6NAME = "nbr_EndToEndTest.basic" 7TIME = "MEDIUM" 8PURPOSE = "Test an NBR N-to-M recovery with Nebraska." 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12DEPENDENCIES = "servo_state:WORKING" 13ATTRIBUTES = "suite:nbr" 14PY_VERSION = 3 15 16DOC = """ 17This tests an N-to-M recovery. This means that it will recover from a ToT install 18to the current stable. This test will be used in the CQ to ensure that changes 19don't break NBR. 20 21We supply a job_repo_url to the test when running locally. In the lab this will 22be passed directly. The job_repo_url is a link to the autotest packages on a 23devserver. The test uses it to find the correct payload to use. 24 25Example usage: 26test_that nbr_EndToEndTest.basic <DUT> --board=<board> --args="job_repo_url='http://<devserver IP>:8082/static/<board>-release/RXX-XXXXX.X.X/autotest/packages', running_at_desk=True" 27 28""" 29 30from autotest_lib.client.common_lib import utils 31args_dict = utils.args_to_dict(args) 32servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 33 34def run(machine): 35 host = hosts.create_host(machine, servo_args=servo_args, **args_dict) 36 # TODO(b//221263849): n2m is disabled till we have stable versions for 37 # guybrush and/or brya. 38 job.run_test("nbr_EndToEndTest", host=host, n2m=False, **args_dict) 39 40job.parallel_simple(run, machines) 41