test/py: Support --build when running tests in parallel
authorSimon Glass <sjg@chromium.org>
Sat, 6 Aug 2022 23:51:57 +0000 (17:51 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Sep 2022 22:06:36 +0000 (18:06 -0400)
commit45a226a16b99f0e7c86e7dcb2cd4035195f69e7f
tree01521df0700b2b12e8e5fd1e5a8d5d6043d9e351
parent486680272e38890f4938ec2a8673c66f42cc5c45
test/py: Support --build when running tests in parallel

At present when -n is used, all workers try to build U-Boot at once.
Add a lock to ensure that only one of them builds, with the others using
the build that is produced.

The lock file is removed on startup.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/conftest.py
test/py/requirements.txt