• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = "Chromium OS Team"
6NAME = "logging_GenerateCrashFiles.KERNEL"
7PURPOSE = "Verify that process crash files are generated."
8TIME = "SHORT"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "logging"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:usb_detect,suite:manual_platform_suite"
13
14DOC = """
15Crash process and confirm log files are generated.
16"""
17
18def run(machine):
19    host = hosts.create_host(machine)
20    crash_cmd = "echo BUG > /sys/kernel/debug/provoke-crash/DIRECT"
21    crash_files = ["kcrash", "meta"]
22    prefix = "kernel"
23    job.run_test("logging_GenerateCrashFiles", host=host,
24                 crash_cmd=crash_cmd, crash_files=crash_files,
25                 prefix=prefix, tag="KERNEL")
26
27parallel_simple(run, machines)
28
29