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

Side by Side Diff: ssh_test.sh

Issue 2869015: Wrapper script for remote_access.sh library. Used by Autotest updater. (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Added comment about usage. Created 10 years, 6 months 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
« no previous file with comments | « no previous file | no next file » | 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 # Run remote access test to ensure ssh access to a host is working. Exits with
8 # a code of 0 if successful and non-zero otherwise. Used by test infrastructure
9 # scripts.
10
11 . "$(dirname "$0")/common.sh"
12 . "$(dirname "$0")/remote_access.sh"
13
14 function cleanup {
15 cleanup_remote_access
16 rm -rf "${TMP}"
17 }
18
19 function main() {
20 cd $(dirname "$0")
21
22 FLAGS "$@" || exit 1
23 eval set -- "${FLAGS_ARGV}"
24
25 set -e
26
27 trap cleanup EXIT
28
29 TMP=$(mktemp -d /tmp/ssh_test.XXXX)
30
31 remote_access_init
32 }
33
34 main $@
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698