* Re: [PATCH] iotests: Fix cleanup path in some tests
2020-02-24 17:16 [PATCH] iotests: Fix cleanup path in some tests Max Reitz
@ 2020-02-24 17:47 ` no-reply
2020-02-24 18:25 ` Eric Blake
2020-03-24 10:58 ` Max Reitz
2 siblings, 0 replies; 4+ messages in thread
From: no-reply @ 2020-02-24 17:47 UTC (permalink / raw)
To: mreitz; +Cc: kwolf, qemu-devel, qemu-block, mreitz
Patchew URL: https://patchew.org/QEMU/20200224171631.384314-1-mreitz@redhat.com/
Hi,
This series failed the docker-quick@centos7 build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1
=== TEST SCRIPT END ===
Not run: 259
Failures: 161
Failed 1 of 116 iotests
make: *** [check-tests/check-block.sh] Error 1
Traceback (most recent call last):
File "./tests/docker/docker.py", line 664, in <module>
sys.exit(main())
---
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=7028e57d717b4b119d70b501375c2943', '-u', '1001', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-nyan6ktl/src/docker-src.2020-02-24-12.33.22.20519:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2.
filter=--filter=label=com.qemu.instance.uuid=7028e57d717b4b119d70b501375c2943
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-nyan6ktl/src'
make: *** [docker-run-test-quick@centos7] Error 2
real 14m3.450s
user 0m8.713s
The full log is available at
http://patchew.org/logs/20200224171631.384314-1-mreitz@redhat.com/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iotests: Fix cleanup path in some tests
2020-02-24 17:16 [PATCH] iotests: Fix cleanup path in some tests Max Reitz
2020-02-24 17:47 ` no-reply
@ 2020-02-24 18:25 ` Eric Blake
2020-03-24 10:58 ` Max Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2020-02-24 18:25 UTC (permalink / raw)
To: Max Reitz, qemu-block; +Cc: Kevin Wolf, qemu-devel
On 2/24/20 11:16 AM, Max Reitz wrote:
> Some iotests leave behind some external data file when run for qcow2
> with -o data_file. Fix that.
>
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> ---
> tests/qemu-iotests/085 | 1 +
> tests/qemu-iotests/087 | 6 ++++++
> tests/qemu-iotests/279 | 2 +-
> 3 files changed, 8 insertions(+), 1 deletion(-)
>
I'd LOVE for someone to take on a GSOC project to finish the work Jeff
Cody once proposed on having iotests run each test in its own dedicated
directory, such that files are left behind on failure for easy
investigation, and cleanup is a snap of just deleting that directory on
success.
But until then, adding manual cleanup where we missed it is correct.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 4+ messages in thread