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 5AUTHOR = 'Chromium OS team' 6NAME = 'tast.runtime-probe' 7TIME = 'MEDIUM' 8TEST_TYPE = 'Server' 9ATTRIBUTES = 'suite:runtime_probe_perbuild' 10 11# tast.py uses binaries installed from autotest_server_package.tar.bz2. 12REQUIRE_SSP = True 13 14DOC = ''' 15Run runtime-probe tests. 16 17Tast is an integration-testing framework analagous to the test-running portion 18of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for 19more information. 20 21This test runs runtime-probe Tast test. 22''' 23import json 24import tempfile 25import yaml 26 27def run(machine): 28 host = hosts.create_host(machine) 29 with tempfile.NamedTemporaryFile(suffix='.yaml') as temp_file: 30 host_info = host.host_info_store.get() 31 yaml.dump({"autotest_host_info_labels": json.dumps(host_info.labels)}, 32 stream=temp_file) 33 job.run_test('tast', 34 host=host, 35 test_exprs=['("group:runtime_probe")'], 36 command_args=args, 37 varsfiles=[temp_file.name]) 38 39parallel_simple(run, machines) 40