From d02af025b23e72d23736f7a9b5d778196d3aeceb Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Wed, 2 Jun 2010 12:30:04 -0700 Subject: [PATCH] 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 --- mod_for_test_scripts/002enableDumps | 12 ++++++++++++ mod_image_for_test.sh | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 mod_for_test_scripts/002enableDumps diff --git a/mod_for_test_scripts/002enableDumps b/mod_for_test_scripts/002enableDumps new file mode 100755 index 0000000000..c823cfa4d5 --- /dev/null +++ b/mod_for_test_scripts/002enableDumps @@ -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" diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh index b106c05beb..a157e59393 100755 --- a/mod_image_for_test.sh +++ b/mod_image_for_test.sh @@ -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