| 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 # Script to sync your checkout, build a Chromium OS image, and test it all | 7 # Script to sync your checkout, build a Chromium OS image, and test it all |
| 8 # with one command. Can also check out a new Chromium OS checkout and | 8 # with one command. Can also check out a new Chromium OS checkout and |
| 9 # perform a subset of the above operations. | 9 # perform a subset of the above operations. |
| 10 # | 10 # |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 fi | 182 fi |
| 183 if [[ -z "${FLAGS_remote}" ]]; then | 183 if [[ -z "${FLAGS_remote}" ]]; then |
| 184 echo "Please specify --remote with --image_to_live" | 184 echo "Please specify --remote with --image_to_live" |
| 185 exit 1 | 185 exit 1 |
| 186 fi | 186 fi |
| 187 fi | 187 fi |
| 188 | 188 |
| 189 if [[ ${FLAGS_mod_image_for_test} -eq ${FLAGS_TRUE} ]]; then | 189 if [[ ${FLAGS_mod_image_for_test} -eq ${FLAGS_TRUE} ]]; then |
| 190 # Override any specified chronos password with the test one | 190 # Override any specified chronos password with the test one |
| 191 FLAGS_chronos_passwd="test0000" | 191 FLAGS_chronos_passwd="test0000" |
| 192 # Default to building autotests whenever we mod image for test. | |
| 193 FLAGS_build_autotest=${FLAGS_TRUE} | |
| 194 # If you're modding for test, you also want developer packages. | 192 # If you're modding for test, you also want developer packages. |
| 195 FLAGS_withdev=${FLAGS_TRUE} | 193 FLAGS_withdev=${FLAGS_TRUE} |
| 196 fi | 194 fi |
| 197 | 195 |
| 198 if [[ -n "${FLAGS_image_to_usb}" ]]; then | 196 if [[ -n "${FLAGS_image_to_usb}" ]]; then |
| 199 local device=${FLAGS_image_to_usb#/dev/} | 197 local device=${FLAGS_image_to_usb#/dev/} |
| 200 if [[ -z "${device}" ]]; then | 198 if [[ -z "${device}" ]]; then |
| 201 echo "Expected --image_to_usb option of /dev/* format" | 199 echo "Expected --image_to_usb option of /dev/* format" |
| 202 exit 1 | 200 exit 1 |
| 203 fi | 201 fi |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 fi | 586 fi |
| 589 | 587 |
| 590 trap - EXIT | 588 trap - EXIT |
| 591 echo "Successfully used ${FLAGS_top} to:" | 589 echo "Successfully used ${FLAGS_top} to:" |
| 592 describe_steps | 590 describe_steps |
| 593 show_duration | 591 show_duration |
| 594 } | 592 } |
| 595 | 593 |
| 596 | 594 |
| 597 main $@ | 595 main $@ |
| OLD | NEW |