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

Issue 1572034: Refine image_to_live script to log all output from devserver. (Closed)

Created:
10 years, 8 months ago by ericli
Modified:
9 years, 7 months ago
Reviewers:
kmixter1
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Refine image_to_live script to log all output from devserver.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M src/scripts/image_to_live.sh View 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
ericli
10 years, 8 months ago (2010-04-13 17:57:14 UTC) #1
kmixter1
10 years, 8 months ago (2010-04-13 19:42:40 UTC) #2
LGTM

On Tue, Apr 13, 2010 at 10:57 AM,  <ericli@chromium.org> wrote:
> Reviewers: kmixter1,
>
> Description:
> Refine image_to_live script to log all output from devserver.
>
> Please review this at http://codereview.chromium.org/1572034/show
>
> Affected files:
>  M src/scripts/image_to_live.sh
>
>
> Index: src/scripts/image_to_live.sh
> diff --git a/src/scripts/image_to_live.sh b/src/scripts/image_to_live.sh
> index
>
49974453dfa3ce388ac815dc53025beac1c42547..b735341e2be546ec1423ff23f4b76916eb1e195d
> 100755
> --- a/src/scripts/image_to_live.sh
> +++ b/src/scripts/image_to_live.sh
> @@ -18,6 +18,8 @@ DEFINE_boolean ignore_hostname ${FLAGS_TRUE} \
>   "Ignore existing AU hostname on running instance use this hostname"
>  DEFINE_boolean update_known_hosts ${FLAGS_FALSE} \
>   "Update your known_hosts with the new remote instance's key"
> +DEFINE_boolean verbose ${FLAGS_FALSE} \
> +  "Whether to output verbose information for debugging."
>
>  function kill_all_devservers {
>   # Using ! here to avoid exiting with set -e is insufficient, so use
> @@ -38,7 +40,11 @@ function remote_reboot_sh {
>
>  function start_dev_server {
>   kill_all_devservers
> -  ./enter_chroot.sh "./start_devserver > /dev/null 2>&1" &
> +  if [ ${FLAGS_verbose} -eq ${FLAGS_FALSE} ]; then
> +    ./enter_chroot.sh "./start_devserver > /dev/null 2>&1" &
> +  else
> +    ./enter_chroot.sh "./start_devserver" &
> +  fi
>   echo -n "Waiting on devserver to start"
>   until netstat -anp 2>&1 | grep 8080 > /dev/null; do
>     sleep .5
> @@ -169,7 +175,7 @@ function main() {
>
>   if ! run_auto_update; then
>     echo "Update was not successful."
> -    exit
> +    exit 1
>   fi
>
>   remote_reboot
>
>
>

Powered by Google App Engine
This is Rietveld 408576698