[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 for 3.0 07/16] docker: gracefully skip check_qemu
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v2 for 3.0 07/16] docker: gracefully skip check_qemu |
Date: |
Fri, 13 Jul 2018 13:17:32 +0100 |
Not all our images are able to run the tests. Rather than use features
we can just check for the existence and run-ability of gtester. If the
image has been setup for binfmt_misc it will be able to run anyway.
Signed-off-by: Alex Bennée <address@hidden>
---
tests/docker/common.rc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/docker/common.rc b/tests/docker/common.rc
index cfc620d554..6df431eb72 100755
--- a/tests/docker/common.rc
+++ b/tests/docker/common.rc
@@ -47,7 +47,13 @@ check_qemu()
else
TEST="$@"
fi
- make $MAKEFLAGS $TEST
+
+ if type gtester > /dev/null 2>&1 && \
+ gtester --version > /dev/null 2>&1; then
+ make $MAKEFLAGS $TEST
+ else
+ echo "No working gtester, skipping make $TEST"
+ fi
}
test_fail()
--
2.17.1
- Re: [Qemu-devel] [PATCH v2 for 3.0 06/16] docker: move make check into check_qemu helper, (continued)
[Qemu-devel] [PATCH v2 for 3.0 04/16] docker: fail more gracefully on docker.py check, Alex Bennée, 2018/07/13
[Qemu-devel] [PATCH v2 for 3.0 05/16] docker: split configure_qemu from build_qemu, Alex Bennée, 2018/07/13
[Qemu-devel] [PATCH v2 for 3.0 09/16] docker: disable debian-powerpc-user-cross, Alex Bennée, 2018/07/13
[Qemu-devel] [PATCH v2 for 3.0 13/16] docker: add --hint to docker.py check, Alex Bennée, 2018/07/13
[Qemu-devel] [PATCH v2 for 3.0 07/16] docker: gracefully skip check_qemu,
Alex Bennée <=
[Qemu-devel] [PATCH v2 for 3.0 11/16] docker: add expansion for docker-test-FOO to Makefile.include, Alex Bennée, 2018/07/13
[Qemu-devel] [PATCH v2 for 3.0 02/16] docker: base debian-tricore on qemu:debian9, Alex Bennée, 2018/07/13
[Qemu-devel] [PATCH v2 for 3.0 08/16] docker: Makefile.include don't include partial images, Alex Bennée, 2018/07/13