1#!/usr/bin/env vpython3 2 3# Copyright 2023 The Chromium Authors 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6"""A standalone tool to test the connection of a target.""" 7 8# Note, this is a temporary tool and should be removed in favor of a better way 9# to expose the functionality or merge with other use cases of get_ssh_address. 10 11import sys 12 13from ffx_integration import test_connection 14 15 16def main(): 17 """Test a connection against a fuchsia target via ffx.""" 18 if len(sys.argv) < 2: 19 raise ValueError('test_connection.py target') 20 test_connection(sys.argv[1]) 21 22 23if __name__ == '__main__': 24 sys.exit(main()) 25