blob: ef3b9824c16195974356c44c547b103268ef9707 [file] [log] [blame]
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
AUTHOR = 'ARC App Experience Team'
NAME = 'tast.nearby-share-arc_fusebox'
METADATA = {
"contacts": ["arc-app-dev@google.com", "alanding@chromium.org"],
"bug_component": "b:537221", # ChromeOS > Software > ARC++ > Framework > Chrome Integration
"criteria": "Run Tast tests for ARC++ Nearby Share with FuseBox"
}
TIME = 'MEDIUM'
TEST_TYPE = 'Server'
ATTRIBUTES = 'suite:nearby-share-arc'
MAX_RESULT_SIZE_KB = 1024 * 1024
PY_VERSION = 3
# tast.py uses binaries installed from autotest_server_package.tar.bz2.
REQUIRE_SSP = True
DOC = '''Run the ARC++ Nearby Share with FuseBox test suite.'''
from autotest_lib.server.cros.crossdevice import cross_device_util
def run(machine):
# Get host objects for each device.
host = hosts.create_host(machine)
companions = hosts.create_companion_hosts(companion_hosts)
phone = companions[0]
androidcomp = "android.companions=%s:%s:model" % (phone.associated_hostname, phone.serial_number)
# Pass the Chrome --enable-features flag with FuseBox feature name.
fusebox_feature_arg = 'nearbyshare.EnableFeatures=ArcNearbyShareFuseBox'
job.run_test('tast',
host=host,
test_exprs=['("group:nearby-share-arc" && "nearby-share-arc_fusebox")'],
ignore_test_failures=True, max_run_sec=10800,
command_args=args,
varslist=[androidcomp, fusebox_feature_arg])
parallel_simple(run, machines)