Add unittests to PRESUBMIT

BUG=None
TEST=repo upload runs unittests.

Change-Id: Ia1882a649f0ba81102ecc05a73c16d2dc4da74e7
Reviewed-on: https://chromium-review.googlesource.com/1178307
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
1 file changed
tree: fedad3b71ecc50d0a76b1ea44ddb0dc23e9419a8
  1. bin/
  2. go/
  3. protos/
  4. venv/
  5. .gitignore
  6. COMMIT-QUEUE.ini
  7. PRESUBMIT.cfg
  8. README.md
README.md

Skylab inventory

Updating inventory schema

Inventory schema is stored as protobuf definitions in the proto/ directory. When you update these protobuf definitions, you must also update the generated python libraries for them.

You need the protoc compiler for this. On gLinux:

sudo apt-get install protobuf-compiler
go get github.com/golang/protobuf/protoc-gen-go

Then, regenerate the libraries (must be done outside chroot):

cd protos
protoc --python_out=../venv/skylab_inventory/protos/ *.proto
protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto