[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 16/24] tests: Ensure TAP version is printed before other messag
From: |
Alex Bennée |
Subject: |
[PULL v2 16/24] tests: Ensure TAP version is printed before other messages |
Date: |
Wed, 1 Mar 2023 15:15:56 +0000 |
From: "Richard W.M. Jones" <rjones@redhat.com>
These two tests were failing with this error:
stderr:
TAP parsing error: version number must be on the first line
[...]
Unknown TAP version. The first line MUST be `TAP version <int>`. Assuming
version 12.
This can be fixed by ensuring we always call g_test_init first in the
body of main.
Thanks: Daniel Berrange, for diagnosing the problem
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20230227174019.1164205-1-rjones@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230228190653.1602033-17-alex.bennee@linaro.org>
diff --git a/tests/qtest/fuzz-lsi53c895a-test.c
b/tests/qtest/fuzz-lsi53c895a-test.c
index a9254b455d..2012bd54b7 100644
--- a/tests/qtest/fuzz-lsi53c895a-test.c
+++ b/tests/qtest/fuzz-lsi53c895a-test.c
@@ -112,12 +112,12 @@ static void test_lsi_do_dma_empty_queue(void)
int main(int argc, char **argv)
{
+ g_test_init(&argc, &argv, NULL);
+
if (!qtest_has_device("lsi53c895a")) {
return 0;
}
- g_test_init(&argc, &argv, NULL);
-
qtest_add_func("fuzz/lsi53c895a/lsi_do_dma_empty_queue",
test_lsi_do_dma_empty_queue);
diff --git a/tests/qtest/rtl8139-test.c b/tests/qtest/rtl8139-test.c
index 1beb83805c..4bd240e9ee 100644
--- a/tests/qtest/rtl8139-test.c
+++ b/tests/qtest/rtl8139-test.c
@@ -207,9 +207,10 @@ int main(int argc, char **argv)
verbosity_level = atoi(v_env);
}
+ g_test_init(&argc, &argv, NULL);
+
qtest_start("-device rtl8139");
- g_test_init(&argc, &argv, NULL);
qtest_add_func("/rtl8139/nop", nop);
qtest_add_func("/rtl8139/timer", test_init);
--
2.39.2
- [PULL v2 03/24] tests: be a bit more strict cleaning up fifos, (continued)
- [PULL v2 03/24] tests: be a bit more strict cleaning up fifos, Alex Bennée, 2023/03/01
- [PULL v2 11/24] tests/docker: Use binaries for debian-tricore-cross, Alex Bennée, 2023/03/01
- [PULL v2 18/24] tests/lcitool: append user setting stanza to dockerfiles, Alex Bennée, 2023/03/01
- [PULL v2 14/24] tests/dockerfiles: unify debian-toolchain references, Alex Bennée, 2023/03/01
- [PULL v2 20/24] tests/docker: use direct RUNC call to build containers, Alex Bennée, 2023/03/01
- [PULL v2 19/24] tests/docker: add USER stanzas to non-lci images, Alex Bennée, 2023/03/01
- [PULL v2 24/24] tests/avocado: disable BootLinuxPPC64 test in CI, Alex Bennée, 2023/03/01
- [PULL v2 23/24] tests/docker: add zstdtools to the images, Alex Bennée, 2023/03/01
- [PULL v2 13/24] cirrus.yml: Improve the windows_msys2_task, Alex Bennée, 2023/03/01
- [PULL v2 17/24] configure: expose the direct container command, Alex Bennée, 2023/03/01
- [PULL v2 16/24] tests: Ensure TAP version is printed before other messages,
Alex Bennée <=
- [PULL v2 12/24] tests: ensure we export job results for some cross builds, Alex Bennée, 2023/03/01
- [PULL v2 22/24] gitlab: move the majority of artefact handling to a template, Alex Bennée, 2023/03/01
- [PULL v2 21/24] tests/docker: use direct RUNC call to run test jobs, Alex Bennée, 2023/03/01
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Peter Maydell, 2023/03/01
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Alex Bennée, 2023/03/01
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Peter Maydell, 2023/03/01
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Alex Bennée, 2023/03/01
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Peter Maydell, 2023/03/02
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Philippe Mathieu-Daudé, 2023/03/02
- Re: [PULL v2 00/24] testing updates (gitlab, cirrus, docker, avocado, windows), Thomas Huth, 2023/03/02