scripts/unit-test.py: Don't build repositories already present

The previous change enhances the docker build script to bake some
heavily-used repositories straight into the docker image as a way to
save time.

We use a file at the magic path /root/.depcache to hold a
comma-separated list of of $PACKAGE:$COMMIT_ID pairs, where $COMMIT_ID
represents the commit at the tip of the master branch of the associated
$PACKAGE (from https://github.com/openbmc/) built into the Docker image.

We can skip building any package listed in /root/.depcache as it's
already present, so don't add it to the dependency graph.

Tested: Ran run-unit-test-docker.sh, confirmed no unnecessary building
of packages.

Change-Id: If59a2813b8e7331b1706e4c09ee7080d72b95e3c
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
1 file changed