qemu-iotests: Filter out "qemu-io> " in all tests
cover qemu-iotests: Filter out "qemu-io> " in all tests
Fam Zheng (2):
qemu-iotests: Filter qemu-io output in 025
qemu-iotests: Filter out 'qemu-io> ' prompt
tests/qemu-iotests/013.out | 44080 ++++++++++++------------- tests/qemu-iotests/014.out | 64204 ++++++++++++++++++------------------- tests/qemu-iotests/017.out | 1080 +- tests/qemu-iotests/018.out | 1080 +- tests/qemu-iotests/019.out | 1636 +- tests/qemu-iotests/020.out | 1080 +- tests/qemu-iotests/022.out | 8816 ++--- tests/qemu-iotests/023.out | 26800 ++++++++-------- tests/qemu-iotests/024.out | 164 +- tests/qemu-iotests/025 | 2 +- tests/qemu-iotests/025.out | 18 +- tests/qemu-iotests/028.out | 458 +- tests/qemu-iotests/032.out | 68 +- tests/qemu-iotests/035.out | 2 +- tests/qemu-iotests/037.out | 616 +- tests/qemu-iotests/038.out | 714 +- tests/qemu-iotests/046.out | 232 +- tests/qemu-iotests/047.out | 20 +- tests/qemu-iotests/048.out | 18 +- tests/qemu-iotests/common.filter | 3 +- 20 files changed, 75546 insertions(+), 75545 deletions(-)
Signature · 1 line
1.8.4.2
PATCH 1/2 qemu-iotests: Filter qemu-io output in 025
--- tests/qemu-iotests/025 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/025 +1 -1
@@ -56,7 +56,7 @@ _check_test_img echo echo "=== Resizing image" -$QEMU_IO "$TEST_IMG" <<EOF +$QEMU_IO "$TEST_IMG" <<EOF | _filter_qemu_io length truncate $big_size length
Signature · 1 line
1.8.4.2
Re: [Qemu-devel] [PATCH 1/2] qemu-iotests: Filter qemu-io output in 025
Quoted 4 lines · Fam Zheng
Signed-off-by Fam Zheng <[email protected]>--- tests/qemu-iotests/025 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
tests/qemu-iotests/025 +1
-1@@ -56,7 +56,7 @@ _check_test_img echo echo "=== Resizing image" -$QEMU_IO "$TEST_IMG" <<EOF +$QEMU_IO "$TEST_IMG" <<EOF | _filter_qemu_io length truncate $big_size length
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
The second patch is too big in size (over 10M), and rejected by list moderator.
You can PULL from git branch:
https://github.com/famz/qemu.git 035-filter-qemu-io
Quoted 26 lines · Fam Zheng
Fam Zheng (2):
qemu-iotests: Filter qemu-io output in 025
qemu-iotests: Filter out 'qemu-io> ' prompttests/qemu-iotests/013.out | 44080 ++++++++++++------------- tests/qemu-iotests/014.out | 64204 ++++++++++++++++++------------------- tests/qemu-iotests/017.out | 1080 +- tests/qemu-iotests/018.out | 1080 +- tests/qemu-iotests/019.out | 1636 +- tests/qemu-iotests/020.out | 1080 +- tests/qemu-iotests/022.out | 8816 ++--- tests/qemu-iotests/023.out | 26800 ++++++++-------- tests/qemu-iotests/024.out | 164 +- tests/qemu-iotests/025 | 2 +- tests/qemu-iotests/025.out | 18 +- tests/qemu-iotests/028.out | 458 +- tests/qemu-iotests/032.out | 68 +- tests/qemu-iotests/035.out | 2 +- tests/qemu-iotests/037.out | 616 +- tests/qemu-iotests/038.out | 714 +- tests/qemu-iotests/046.out | 232 +- tests/qemu-iotests/047.out | 20 +- tests/qemu-iotests/048.out | 18 +- tests/qemu-iotests/common.filter | 3 +- 20 files changed, 75546 insertions(+), 75545 deletions(-)
Quoted 6 lines · Fam Zheng
The second patch is too big in size (over 10M), and rejected by list moderator.
You can PULL from git branch:
https://github.com/famz/qemu.git 035-filter-qemu-io
I'm guessing the second patch consists of a tiny amount of code to turn on the filter, while the majority of the patch was automated. It would be helpful to amend your commit message to show how you automated the conversion (was it something like
find tests/qemu-iotests -name "*.out" | \
xargs -L1 sed -i "s/qemu-io> //g" '
?)
Given such a formula in the commit message itself, it would be much easier to review the patch - check that both the non-automatic small modification and the conversion formula make sense, then repeat the conversion formula locally and compare it to your git tree to see that the two results match, and that the testsuite still passes. [Or in other words, I don't plan on reading 10M of mindlessly repetitive changes :) ]
Quoted 2 lines
Quoted 2 lines
tests/qemu-iotests/common.filter | 3 +- 20 files changed, 75546 insertions(+), 75545 deletions(-)
Looks like that's the one file with the nontrivial change.
(quoted diff) +0 -0
b/tests/qemu-iotests/common.filter
index 8e7b1a4..0dd82e1 100644
tests/qemu-iotests/common.filter +0 -1
@@ -149,7 +149,8 @@ _filter_win32() # sanitize qemu-io output _filter_qemu_io() { - _filter_win32 | sed -e "s/[0-9]* ops\; [0-9/:. sec]* ([0-9/.inf]*
[EPTGMKiBbytes]*\/sec and [0-9/.inf]* ops\/sec)/X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/"
+ _filter_win32 | sed -e "s/[0-9]* ops\; [0-9/:. sec]* ([0-9/.inf]*
[EPTGMKiBbytes]*\/sec and [0-9/.inf]* ops\/sec)/X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/" |\
+ sed -e "s/qemu-io> //g"
}
# replace occurrences of QEMU_PROG with "qemu"
Question - why do you pipeline 'sed | sed'? It should be sufficient to just add the "s/qemu-io> //g" instruction into the existing sed pipeline, for one fewer process per filter run.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org