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

Side by Side Diff: bin/cros_run_wifi_tests.sh

Issue 4069001: Complain (and more importantly don't blindly run) if AP or Client IP is unset (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Created 10 years, 2 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
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 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 # Wrapper script around run_remote_tests.sh that knows how to find 7 # Wrapper script around run_remote_tests.sh that knows how to find
8 # device test cells. 8 # device test cells.
9 9
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 # Retrieve the testbed config from the server and match either the client 117 # Retrieve the testbed config from the server and match either the client
118 # or the cell number to one of the entries 118 # or the cell number to one of the entries
119 ret=$(curl -s $lab_url | \ 119 ret=$(curl -s $lab_url | \
120 while read line; do 120 while read line; do
121 # Each line from the server is made up of: 121 # Each line from the server is made up of:
122 # client_name router_name server_name client_addr router_addr server_addr 122 # client_name router_name server_name client_addr router_addr server_addr
123 set $line 123 set $line
124 if [ "${FLAGS_cell}" = "$cell_no" -o "${FLAGS_client}" = "$1" -o \ 124 if [ "${FLAGS_cell}" = "$cell_no" -o "${FLAGS_client}" = "$1" -o \
125 "${FLAGS_client}" = "$4" ] ; then 125 "${FLAGS_client}" = "$4" ] ; then
126 if [ "$5" = "0.0.0.0" -o "$4" = "0.0.0.0" ]; then
127 # Error -- these should never be zeroes
128 break
129 fi
126 echo "$4" 130 echo "$4"
127 echo "router_addr=$5" 131 echo "router_addr=$5"
128 if [ "$6" != "0.0.0.0" ] ; then 132 if [ "$6" != "0.0.0.0" ] ; then
129 echo "server_addr=$6" 133 echo "server_addr=$6"
130 fi 134 fi
131 break 135 break
132 fi 136 fi
133 cell_no=$[cell_no + 1] 137 cell_no=$[cell_no + 1]
134 done) 138 done)
135 139
136 if [ -z "$ret" ] ; then 140 if [ -z "$ret" ] ; then
137 echo ">>> Cell or host not found at $lab_url" 141 echo ">>> Cell or host not found at $lab_url"
138 exit 1 142 exit 1
139 fi 143 fi
140 144
141 set $ret 145 set $ret
142 remote=$1 146 remote=$1
143 shift 147 shift
144 for arg in $*; do 148 for arg in $*; do
145 append_arg $arg 149 append_arg $arg
146 done 150 done
147 151
148 eval "exec ${script_root}/run_remote_tests.sh \ 152 eval "exec ${script_root}/run_remote_tests.sh \
149 --args=\"${run_remote_args}\" --remote=${remote} $run_remote_flags \ 153 --args=\"${run_remote_args}\" --remote=${remote} $run_remote_flags \
150 $FLAGS_ARGV" 154 $FLAGS_ARGV"
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