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

Side by Side Diff: src/scripts/run_remote_tests.sh

Issue 1515011: Adds gmergefs. A method of remoting to a target and pushing new (Closed)
Patch Set: Fixes for adlr Created 10 years, 8 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 | « src/scripts/enter_chroot.sh ('k') | 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 # Script to run client or server tests on a live remote image. 7 # Script to run client or server tests on a live remote image.
8 8
9 # Load common constants. This should be the first executable line. 9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location. 10 # The path to common.sh should be relative to your script's location.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 if egrep -q "(BAD|ERROR|FAIL)" "${file}"; then 72 if egrep -q "(BAD|ERROR|FAIL)" "${file}"; then
73 return 1 73 return 1
74 fi 74 fi
75 # To be successful, must have GOOD in the file. 75 # To be successful, must have GOOD in the file.
76 if ! grep -q GOOD "${file}"; then 76 if ! grep -q GOOD "${file}"; then
77 return 1 77 return 1
78 fi 78 fi
79 return 0 79 return 0
80 } 80 }
81 81
82 # Removes single quotes around parameter
83 # Arguments:
84 # $1 - string which optionally has surrounding quotes
85 # Returns:
86 # None, but prints the string without quotes.
87 function remove_quotes() {
88 echo "$1" | sed -e "s/^'//; s/'$//"
89 }
90
91 # Adds attributes to all tests run 82 # Adds attributes to all tests run
92 # Arguments: 83 # Arguments:
93 # $1 - results directory 84 # $1 - results directory
94 # $2 - attribute name (key) 85 # $2 - attribute name (key)
95 # $3 - attribute value (value) 86 # $3 - attribute value (value)
96 function add_test_attribute() { 87 function add_test_attribute() {
97 local results_dir="$1" 88 local results_dir="$1"
98 local attribute_name="$2" 89 local attribute_name="$2"
99 local attribute_value="$3" 90 local attribute_value="$3"
100 if [[ -z "$attribute_value" ]]; then 91 if [[ -z "$attribute_value" ]]; then
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 fi 290 fi
300 else 291 else
301 echo_color "red" ">>> FAILED: ${control_file}" 292 echo_color "red" ">>> FAILED: ${control_file}"
302 cat "${test_status}" 293 cat "${test_status}"
303 fi 294 fi
304 local end_time=$(date '+%s') 295 local end_time=$(date '+%s')
305 done 296 done
306 } 297 }
307 298
308 main $@ 299 main $@
OLDNEW
« no previous file with comments | « src/scripts/enter_chroot.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698