diff options
| author | Alex Bennée | 2018-07-09 14:27:54 +0200 |
|---|---|---|
| committer | Alex Bennée | 2018-07-24 12:45:25 +0200 |
| commit | 3f9747a73891e50d9c09d2fc3dbba6f1fdd03a13 (patch) | |
| tree | 60cb3cd074b9d43cafa0e81e3ce39c505d483ba8 /tests/docker/common.rc | |
| parent | docker: split configure_qemu from build_qemu (diff) | |
| download | qemu-3f9747a73891e50d9c09d2fc3dbba6f1fdd03a13.tar.gz qemu-3f9747a73891e50d9c09d2fc3dbba6f1fdd03a13.tar.xz qemu-3f9747a73891e50d9c09d2fc3dbba6f1fdd03a13.zip | |
docker: move make check into check_qemu helper
Not all docker images can run the check step. Let's move everything
into a common helper so we don't need to replicate checks in the
future.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/docker/common.rc')
| -rwxr-xr-x | tests/docker/common.rc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/docker/common.rc b/tests/docker/common.rc index ba1f942328..4ff5974016 100755 --- a/tests/docker/common.rc +++ b/tests/docker/common.rc @@ -40,6 +40,17 @@ build_qemu() make $MAKEFLAGS } +check_qemu() +{ + # default to make check unless the caller specifies + if test -z "$@"; then + INVOCATION="check" + else + INVOCATION="$@" + fi + make $MAKEFLAGS $INVOCATION +} + test_fail() { echo "$@" |
