mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-26 21:11:54 +01:00
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:
parent
1d12c1a01d
commit
d02af025b2
12
mod_for_test_scripts/002enableDumps
Executable file
12
mod_for_test_scripts/002enableDumps
Executable 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"
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user