Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: bin/cros_stop_vm

Issue 5988006: Add new script to stop a kvm using vm library and use in harness. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Fix docstring Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bin/cros_au_test_harness.py ('k') | lib/cros_vm_lib.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
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
5 # found in the LICENSE file.
6 #
7 # Simple wrapper scipt to stop a vm specified from a pid file.
8
9 . "$(dirname $0)/../common.sh"
10 . "$(dirname $0)/../lib/cros_vm_lib.sh"
11
12 set -e
13
14 # Parse command line.
15 FLAGS "$@" || exit 1
16 eval set -- "${FLAGS_ARGV}"
17
18 # Requires pid file to be set.
19 if [ -z "${FLAGS_kvm_pid}" ]; then
20 die "Must specify file with pid of kvm to kill."
21 fi
22
23 KVM_PID_FILE="${FLAGS_kvm_pid}"
24 stop_kvm
OLDNEW
« no previous file with comments | « bin/cros_au_test_harness.py ('k') | lib/cros_vm_lib.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698