blob: f97560655228cc7873acec285d4f0c23ef8a2bfd [file] [log] [blame]
# 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.KERNEL"
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 = "echo BUG > /sys/kernel/debug/provoke-crash/DIRECT"
crash_files = ["kcrash", "meta"]
prefix = "kernel"
job.run_test("logging_GenerateCrashFiles", host=host,
crash_cmd=crash_cmd, crash_files=crash_files,
prefix=prefix, tag="KERNEL")
parallel_simple(run, machines)