• 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.PROCESS"
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 = "killall -w -s SEGV /usr/bin/powerd"
21    crash_files = ["core", "dmp", "meta", "log"]
22    prefix = "powerd"
23    job.run_test("logging_GenerateCrashFiles", host=host,
24                 crash_cmd=crash_cmd, crash_files=crash_files,
25                 prefix=prefix, tag="PROCESS")
26
27parallel_simple(run, machines)
28
29