[ RUN ] CrashReporterLogsTest.ReadConfig
../../../../../../../../../mnt/host/source/src/platform2/crash-reporter/crash_reporter_logs_test.cc:25: Failure
Value of: store.Load(base::FilePath(kLogConfigFileName))
Actual: false
Expected: true
[ FAILED ] CrashReporterLogsTest.ReadConfig (0 ms)
[ RUN ] ServiceFailureCollectorTest.CollectOK
[INFO:service_failure_collector.cc(54)] Processing service failure: normal collection
[WARNING:crash_collector.cc(552)] Unable to read log configuration file /etc/crash_reporter_logs.conf
../../../../../../../../../mnt/host/source/src/platform2/crash-reporter/service_failure_collector_test.cc:73: Failure
Value of: IsDirectoryEmpty(test_crash_directory_)
Actual: true
Expected: false
[ FAILED ] ServiceFailureCollectorTest.CollectOK (1 ms)
[ FAILED ] 2 tests, listed below:
[ FAILED ] CrashReporterLogsTest.ReadConfig
[ FAILED ] ServiceFailureCollectorTest.CollectOK
These test failures occur due to a missing file: crash_reporter_logs.conf
If the package has previously been installed, CollectOK passes since it reads from /etc/crash_reporter_logs.conf.
ReadConfig will always fail since it looks for the file in CWD.
Fix: Copy the file in the test recipe of .gyp, and allow injecting a mock value to change from the default location in /etc.
Comment 1 by bugdroid1@chromium.org
, Dec 7 2017