Add error handling for sending events

Ugly case of ignored errors.  The effect of this bug is that lucifer
would not terminate if the parent dies, instead running to completion
even though that completion wont be sent to Autotest.  The parent
will still wait for lucifer to terminate; it would just take longer
than it should.

Undesirable, but not fatal.

BUG=chromium:799633
TEST=None

Change-Id: I2b27e03633796e834b2bc96e55973340c9ce5f74
Reviewed-on: https://chromium-review.googlesource.com/903546
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
2 files changed
tree: e61e190ba0106a8d4c6032dc62a7393a784d7ef2
  1. scripts/
  2. src/
  3. .gitignore
  4. Makefile
  5. PRESUBMIT.cfg
  6. README.md
README.md

lucifer

Chromium OS test running infrastructure.

Overview

The primary binary provided by lucifer is lucifer_run_job, which implements (or will implement) all parts of running an Autotest job. Updating the status of a running job is delegated to the calling process. lucifer_run_job prints status update events to stdout, and the calling process should perform the necessary updates.

Development

Setup a development environment:

$ sudo apt-get install go
$ export GOPATH=$(pwd)

To serve documentation:

$ godoc -port 5000

To build binaries:

$ make

To run unit tests:

$ make check

To run all tests, including slow and/or flaky tests:

$ make check_all

To check test coverage of a package:

$ scripts/check_coverage chromiumos/infra/lucifer/event