• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2024 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from __future__ import annotations
6
7import hjson
8
9from crossbench.cli.config.driver import DriverConfig
10
11from tests import test_helper
12
13
14def test_specific_device_id(device_id, adb_path) -> None:
15  config_dict = {
16      "type": "adb",
17      "device_id": device_id,
18      "adb_bin": adb_path
19  }
20  driver_config = DriverConfig.parse(hjson.dumps(config_dict))
21  assert driver_config.device_id == device_id
22
23
24if __name__ == "__main__":
25  test_helper.run_pytest(__file__)
26