Enables saving of chromium mini/core dumps

BUG=3283
TEST=Tested by running mod_image_for_test and checking the stateful partiton
on the resulting image and verifying that these files exist in the correct
locations.

Review URL: http://codereview.chromium.org/2107013
This commit is contained in:
Chris Sosa 2010-06-02 12:30:04 -07:00
parent 1d12c1a01d
commit d02af025b2
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Enables chromium mini and core dumps.
echo "Enabling chromium [mini,core]dumps."
mkdir -p "${STATEFUL_DIR}/etc"
touch "${STATEFUL_DIR}/etc/enable_chromium_minidumps"
touch "${STATEFUL_DIR}/etc/enable_chromium_coredumps"

View File

@ -172,7 +172,7 @@ else
MOD_TEST_ROOT="${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts"
# Run test setup script to modify the image
sudo GCLIENT_ROOT="${GCLIENT_ROOT}" ROOT_FS_DIR="${ROOT_FS_DIR}" \
"${MOD_TEST_ROOT}/test_setup.sh"
STATEFUL_DIR="${STATEFUL_DIR}" "${MOD_TEST_ROOT}/test_setup.sh"
if [ ${FLAGS_factory} -eq ${FLAGS_TRUE} ]; then
install_autotest