OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 # Runs a given test case under a VM. | 7 # Runs a given test case under a VM. |
8 | 8 |
9 . "$(dirname $0)/../common.sh" | 9 . "$(dirname $0)/../common.sh" |
10 . "$(dirname $0)/../lib/cros_vm_lib.sh" | 10 . "$(dirname $0)/../lib/cros_vm_lib.sh" |
(...skipping 16 matching lines...) Expand all Loading... |
27 fi | 27 fi |
28 | 28 |
29 [ -e "${FLAGS_image_path}" ] || die "Image ${FLAGS_image_path} does not exist." | 29 [ -e "${FLAGS_image_path}" ] || die "Image ${FLAGS_image_path} does not exist." |
30 | 30 |
31 [ -n "${FLAGS_test_case}" ] || die "You must specify a test case." | 31 [ -n "${FLAGS_test_case}" ] || die "You must specify a test case." |
32 | 32 |
33 trap stop_kvm EXIT | 33 trap stop_kvm EXIT |
34 start_kvm "${FLAGS_image_path}" | 34 start_kvm "${FLAGS_image_path}" |
35 "$(dirname $0)"/../run_remote_tests.sh \ | 35 "$(dirname $0)"/../run_remote_tests.sh \ |
36 --ssh_port=${FLAGS_ssh_port} \ | 36 --ssh_port=${FLAGS_ssh_port} \ |
37 --remote="${HOSTNAME}" \ | 37 --remote=127.0.0.1 \ |
38 "${FLAGS_test_case}" | 38 "${FLAGS_test_case}" |
OLD | NEW |