blob: 85aa2b4f4c66f71d4034110808c77d584d3d1818 [file] [log] [blame] [edit]
# Copyright 2016 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.
AUTHOR = "Chromium OS Team"
NAME = "logging_GenerateCrashFiles.PROCESS"
PURPOSE = "Verify that process crash files are generated."
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "logging"
TEST_TYPE = "server"
ATTRIBUTES = "suite:usb_detect,suite:manual_platform_suite"
DOC = """
Crash process and confirm log files are generated.
"""
def run(machine):
host = hosts.create_host(machine)
crash_cmd = "killall -w -s SEGV /usr/bin/powerd"
crash_files = [".*powerd.*core", ".*powerd.*dmp",
".*powerd.*meta", ".*powerd.*log"]
job.run_test("logging_GenerateCrashFiles", host=host,
crash_cmd=crash_cmd, crash_files=crash_files, tag="PROCESS")
parallel_simple(run, machines)