tests/cdrom-test: only include isapc cdrom test when g_test_slow()
PATCH 1/1 tests/cdrom-test: only include isapc cdrom test when g_test_slow()
We are seeing instability on our CI runs which has been there since the test was introduced. I suspect it triggers more on Travis due to their heavy load.
--- tests/cdrom-test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
tests/cdrom-test.c +8 -2
@@ -132,8 +132,14 @@ static void add_x86_tests(void)qtest_add_data_func ("cdrom/boot/virtio-scsi" ,"-device virtio-scsi -device scsi-cd,drive=cdr " "-blockdev file,node-name=cdr,filename=" , test_cdboot); -qtest_add_data_func ("cdrom/boot/isapc" ,"-M isapc " -"-drive if=ide,media=cdrom,file=" , test_cdboot); +/* +* Unstable CI test under load +* See https://lists.gnu.org/archive/html/qemu-devel/2019-02/msg05509.html +*/ +if (g_test_slow ()) { +qtest_add_data_func ("cdrom/boot/isapc" ,"-M isapc " +"-drive if=ide,media=cdrom,file=" , test_cdboot); + }qtest_add_data_func ("cdrom/boot/am53c974" ,"-device am53c974 -device scsi-cd,drive=cd1 " "-drive if=none,id=cd1,format=raw,file=" , test_cdboot);
Signature · 1 line
2.20.1
Quoted 21 lines · Alex Bennée
We are seeing instability on our CI runs which has been there since the test was introduced. I suspect it triggers more on Travis due to their heavy load.
Signed-off-by Alex Bennée <[email protected]>--- tests/cdrom-test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)tests/cdrom-test.c +1
-2@@ -132,8 +132,14 @@ static void add_x86_tests(void)qtest_add_data_func ("cdrom/boot/virtio-scsi" ,"-device virtio-scsi -device scsi-cd,drive=cdr " "-blockdev file,node-name=cdr,filename=" , test_cdboot); -qtest_add_data_func ("cdrom/boot/isapc" ,"-M isapc " -"-drive if=ide,media=cdrom,file=" , test_cdboot); +/*
tests/cdrom-test.c static void add_x86_tests(void) · line 145
Quoted 10 lines
tests/cdrom-test.c +7
-0+* Unstable CI test under load +* See https://lists.gnu.org/archive/html/qemu-devel/2019-02/msg05509.html +*/ +if (g_test_slow ()) { +qtest_add_data_func ("cdrom/boot/isapc" ,"-M isapc " +"-drive if=ide,media=cdrom,file=" , test_cdboot); + }qtest_add_data_func ("cdrom/boot/am53c974" ,"-device am53c974 -device scsi-cd,drive=cd1 " "-drive if=none,id=cd1,format=raw,file=" , test_cdboot);
Which tree should this go through? qtest? Block? Your test tree?
At least I don't have much in the qtest queue right now and did not plan a pull request soon. Let me know if you want me to queue it.
Quoted 35 lines · Thomas Huth
Quoted 21 lines · Alex Bennée
We are seeing instability on our CI runs which has been there since the test was introduced. I suspect it triggers more on Travis due to their heavy load.
Signed-off-by Alex Bennée <[email protected]>--- tests/cdrom-test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)tests/cdrom-test.c +1
-2@@ -132,8 +132,14 @@ static void add_x86_tests(void)qtest_add_data_func ("cdrom/boot/virtio-scsi" ,"-device virtio-scsi -device scsi-cd,drive=cdr " "-blockdev file,node-name=cdr,filename=" , test_cdboot); -qtest_add_data_func ("cdrom/boot/isapc" ,"-M isapc " -"-drive if=ide,media=cdrom,file=" , test_cdboot); +/* tests/cdrom-test.c static void add_x86_tests(void) · line 145
Quoted 10 lines
tests/cdrom-test.c +7
-0+* Unstable CI test under load +* See https://lists.gnu.org/archive/html/qemu-devel/2019-02/msg05509.html +*/ +if (g_test_slow ()) { +qtest_add_data_func ("cdrom/boot/isapc" ,"-M isapc " +"-drive if=ide,media=cdrom,file=" , test_cdboot); + }qtest_add_data_func ("cdrom/boot/am53c974" ,"-device am53c974 -device scsi-cd,drive=cd1 " "-drive if=none,id=cd1,format=raw,file=" , test_cdboot);Acked-by Thomas Huth <[email protected]>
Quoted 1 line
Which tree should this go through? qtest? Block? Your test tree?
I'll put in my testing/next pull-req.
Quoted 3 lines
At least I don't have much in the qtest queue right now and did not plan a pull request soon. Let me know if you want me to queue it.
--
Alex Bennée