* [Qemu-devel] [PULL 1/4] docker: dump 'config.log' if ./configure fails
2018-04-09 7:19 [Qemu-devel] [PULL 0/4] Testing patches Fam Zheng
@ 2018-04-09 7:19 ` Fam Zheng
2018-04-09 7:19 ` [Qemu-devel] [PULL 2/4] tests: Fix ubuntu.i386 image initialization Fam Zheng
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Fam Zheng @ 2018-04-09 7:19 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Fam Zheng
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20180315142713.30960-1-f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
tests/docker/common.rc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/docker/common.rc b/tests/docker/common.rc
index 7951555e3f..046f8a5921 100755
--- a/tests/docker/common.rc
+++ b/tests/docker/common.rc
@@ -30,7 +30,9 @@ build_qemu()
$@"
echo "Configure options:"
echo $config_opts
- $QEMU_SRC/configure $config_opts && make $MAKEFLAGS
+ $QEMU_SRC/configure $config_opts || \
+ { cat config.log && test_fail "Failed to run 'configure'"; }
+ make $MAKEFLAGS
}
test_fail()
--
2.14.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 2/4] tests: Fix ubuntu.i386 image initialization
2018-04-09 7:19 [Qemu-devel] [PULL 0/4] Testing patches Fam Zheng
2018-04-09 7:19 ` [Qemu-devel] [PULL 1/4] docker: dump 'config.log' if ./configure fails Fam Zheng
@ 2018-04-09 7:19 ` Fam Zheng
2018-04-09 7:19 ` [Qemu-devel] [PULL 3/4] docker: Inline "prep_fail" in run script Fam Zheng
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Fam Zheng @ 2018-04-09 7:19 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Fam Zheng
The apt-get commands we run through ssh expect certain features of the
tty, and refuses to work if /dev/null is used. It is ugly, but easy to
satisfy.
Actually, there is no reason to hide the output. It just makes things
harder to diagnose. We can always redirect in the Makefile, so don't do
it conditionally here.
Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20180322034753.6301-1-famz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
tests/vm/basevm.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 686d88decf..3a2d508c35 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -107,10 +107,7 @@ class BaseVM(object):
assert not isinstance(cmd, str)
ssh_cmd += ["%s@127.0.0.1" % user] + list(cmd)
logging.debug("ssh_cmd: %s", " ".join(ssh_cmd))
- r = subprocess.call(ssh_cmd,
- stdin=sys.stdin if interactive else self._devnull,
- stdout=sys.stdout if interactive else self._stdout,
- stderr=sys.stderr if interactive else self._stderr)
+ r = subprocess.call(ssh_cmd)
if check and r != 0:
raise Exception("SSH command failed: %s" % cmd)
return r
--
2.14.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 3/4] docker: Inline "prep_fail" in run script
2018-04-09 7:19 [Qemu-devel] [PULL 0/4] Testing patches Fam Zheng
2018-04-09 7:19 ` [Qemu-devel] [PULL 1/4] docker: dump 'config.log' if ./configure fails Fam Zheng
2018-04-09 7:19 ` [Qemu-devel] [PULL 2/4] tests: Fix ubuntu.i386 image initialization Fam Zheng
@ 2018-04-09 7:19 ` Fam Zheng
2018-04-09 7:19 ` [Qemu-devel] [PULL 4/4] docker: fedora: test more components Fam Zheng
2018-04-09 11:02 ` [Qemu-devel] [PULL 0/4] Testing patches Peter Maydell
4 siblings, 0 replies; 6+ messages in thread
From: Fam Zheng @ 2018-04-09 7:19 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Fam Zheng
We don't source common.rc where prep_fail is defined, so spell out the
commands and do what was intended.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20180326090350.30014-1-famz@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
tests/docker/run | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/docker/run b/tests/docker/run
index 9dd362bb98..7aebf4b569 100755
--- a/tests/docker/run
+++ b/tests/docker/run
@@ -29,7 +29,7 @@ export TEST_DIR=/tmp/qemu-test
mkdir -p $TEST_DIR/{src,build,install}
# Extract the source tarballs
-tar -C $TEST_DIR/src -xf $BASE/qemu.tar || prep_fail "Failed to untar source"
+tar -C $TEST_DIR/src -xf $BASE/qemu.tar || { echo "Failed to untar source"; exit 2; }
if test -f $TEST_DIR/src/Makefile; then
export FEATURES="$FEATURES dtc"
fi
--
2.14.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PULL 4/4] docker: fedora: test more components
2018-04-09 7:19 [Qemu-devel] [PULL 0/4] Testing patches Fam Zheng
` (2 preceding siblings ...)
2018-04-09 7:19 ` [Qemu-devel] [PULL 3/4] docker: Inline "prep_fail" in run script Fam Zheng
@ 2018-04-09 7:19 ` Fam Zheng
2018-04-09 11:02 ` [Qemu-devel] [PULL 0/4] Testing patches Peter Maydell
4 siblings, 0 replies; 6+ messages in thread
From: Fam Zheng @ 2018-04-09 7:19 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, Fam Zheng
From: Paolo Bonzini <pbonzini@redhat.com>
Install optional dependencies of QEMU to get better coverage.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1520942752-19449-1-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
tests/docker/dockerfiles/fedora.docker | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker
index a00004319e..b706f42405 100644
--- a/tests/docker/dockerfiles/fedora.docker
+++ b/tests/docker/dockerfiles/fedora.docker
@@ -1,9 +1,16 @@
FROM fedora:27
ENV PACKAGES \
ccache gettext git tar PyYAML sparse flex bison python3 bzip2 hostname \
- glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
- gcc gcc-c++ llvm clang make perl which bc findutils libaio-devel \
- nettle-devel libasan libubsan \
+ gcc gcc-c++ llvm clang make perl which bc findutils glib2-devel \
+ libaio-devel pixman-devel zlib-devel libfdt-devel libasan libubsan \
+ bluez-libs-devel brlapi-devel bzip2-devel \
+ device-mapper-multipath-devel glusterfs-api-devel gnutls-devel \
+ gtk3-devel libattr-devel libcap-devel libcap-ng-devel libcurl-devel \
+ libjpeg-devel libpng-devel librbd-devel libssh2-devel libusbx-devel \
+ libxml2-devel lzo-devel ncurses-devel nettle-devel nss-devel \
+ numactl-devel SDL2-devel snappy-devel spice-server-devel \
+ systemtap-sdt-devel usbredir-devel virglrenderer-devel vte3-devel \
+ xen-devel \
mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \
mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 \
--
2.14.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PULL 0/4] Testing patches
2018-04-09 7:19 [Qemu-devel] [PULL 0/4] Testing patches Fam Zheng
` (3 preceding siblings ...)
2018-04-09 7:19 ` [Qemu-devel] [PULL 4/4] docker: fedora: test more components Fam Zheng
@ 2018-04-09 11:02 ` Peter Maydell
4 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2018-04-09 11:02 UTC (permalink / raw)
To: Fam Zheng; +Cc: QEMU Developers
On 9 April 2018 at 08:19, Fam Zheng <famz@redhat.com> wrote:
> The following changes since commit 08e173f29461396575c85510eb41474b993cb1fb:
>
> Merge remote-tracking branch 'remotes/berrange/tags/qcrypto-next-pull-request' into staging (2018-04-06 17:51:21 +0100)
>
> are available in the Git repository at:
>
> git://github.com/famz/qemu.git tags/testing-pull-request
>
> for you to fetch changes up to 07fed474177a4566052ea81b1563d53a37083e84:
>
> docker: fedora: test more components (2018-04-09 15:13:02 +0800)
>
> ----------------------------------------------------------------
> Testing patches
>
> ----------------------------------------------------------------
>
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread