diff options
author | Eric Anholt <[email protected]> | 2020-03-03 14:38:09 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-11 21:36:47 +0000 |
commit | cf5ba9d409bcae3496d094def5c3b199a8847b3c (patch) | |
tree | bd4730d75a133fc36d5e4d5c8c6d31ba7835e69a /.gitlab-ci/bare-metal/expect-output.sh | |
parent | d51da8610f6c5c0a22f2a7b1c9bfd596a7c46949 (diff) |
ci: Make a simple little bare-metal fastboot mode for db410c.
This supports powering up the device (using an external tool you
provide based on your particular lab), talking over serial to wait for
the fastboot prompt, and then booting a fastboot image on a target
device.
I was previously relying on LAVA for this, but that ran afoul of
corporate policies related to the AGPL. However, LAVA wasn't doing
too much for us, given that gitlab already has a job scheduler and
tagging and runners. We were spending a lot of engineering on making
the two systems match up, when we can just have gitlab do it directly.
Lightly-reviewed-by: Kristian H. Kristensen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4076>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4076>
Diffstat (limited to '.gitlab-ci/bare-metal/expect-output.sh')
-rwxr-xr-x | .gitlab-ci/bare-metal/expect-output.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci/bare-metal/expect-output.sh b/.gitlab-ci/bare-metal/expect-output.sh new file mode 100755 index 00000000000..a7e62a1ec8c --- /dev/null +++ b/.gitlab-ci/bare-metal/expect-output.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +echo "Waiting for $1 to say '$2'" + +while ! grep -q "$2" $1; do + sleep 2 +done |