Reduce noise in buildbot logs

Set LANG=C also when providing a command to enter_chroot.sh. Should make
buildbot logs quite a bit shorter.

Review URL: http://codereview.chromium.org/521053
This commit is contained in:
Colin Watson 2010-01-07 07:36:32 +00:00
parent c1d3332aed
commit 3a3566b51f
2 changed files with 1 additions and 4 deletions

View File

@ -140,7 +140,7 @@ CHROOT_PASSTHRU="CHROMEOS_REVISION=$REVISION BUILDBOT_BUILD=$FLAGS_build_number
# the source trunk for scripts that may need to print it (e.g. # the source trunk for scripts that may need to print it (e.g.
# build_image.sh). # build_image.sh).
sudo chroot "$FLAGS_chroot" sudo -i -u $USER $CHROOT_PASSTHRU \ sudo chroot "$FLAGS_chroot" sudo -i -u $USER $CHROOT_PASSTHRU \
EXTERNAL_TRUNK_PATH="${FLAGS_trunk}" "$@" EXTERNAL_TRUNK_PATH="${FLAGS_trunk}" LANG=C "$@"
# Remove trap and explicitly unmount # Remove trap and explicitly unmount
trap - EXIT trap - EXIT

View File

@ -166,9 +166,6 @@ sudo mount --bind "$GCLIENT_ROOT" "${FLAGS_chroot}$CHROOT_TRUNK_DIR"
# Niceties for interactive logins ('enter_chroot.sh'); these are ignored # Niceties for interactive logins ('enter_chroot.sh'); these are ignored
# when specifying a command to enter_chroot.sh. # when specifying a command to enter_chroot.sh.
# Warn less when apt-get installing packqages
echo "export LANG=C" >> "$FLAGS_chroot/home/$USER/.bashrc"
chmod a+x "$FLAGS_chroot/home/$USER/.bashrc"
# Automatically change to scripts directory # Automatically change to scripts directory
echo "cd trunk/src/scripts" >> "$FLAGS_chroot/home/$USER/.profile" echo "cd trunk/src/scripts" >> "$FLAGS_chroot/home/$USER/.profile"