Skip to content

qtest/virtio-9p-test.c: fix slow tests

Daniel Henrique Barboza qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 9 repliesIn review
  2. v27 patches 0 repliesSuperseded
  3. v13 patches 13 repliesSuperseded

Changes from v3 from the cover letter

- patches 1 to 6: dropped
- patch 1 (new):
- create and remove temporary dirs on each test
- v2 link: https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg06335.html

[1] https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg06400.html

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2qtest/virtio-9p-test.c: create/remove temp dirs after each testtests/qtest/virtio-9p-test.c+11 -120 replies
2/2qtest/virtio-9p-test.c: remove g_test_slow() gatetests/qtest/virtio-9p-test.c+0 -94 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg KurzChristian SchoenebeckThomas Huth
SeriesR-b R-b T-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH for-9.0 v3 0/2] qtest/virtio-9p-test.c: fix slow tests

Hi,

In this new version we took a different approach after the discussions we had in [1]. The tests are now untouched, and we're addressing the root cause directly: the fact that we have a single temp dir for all the test execution in qos-test.

We're now creating and cleaning temp dirs for each individual test by calling virtio_9p_create_local_test_dir() in the .before callback for the local 9p tests (assign_9p_local_driver()). In this same callback we queue the cleanup function that will erase the created temp dir. The cleanup will run after the test ran successfully.

This approach is similar to what other qtests do (in fact this design was taken from vhost-user-test.c) so it's not like we're doing something novel.

I kept the revert of the slow test gate because Gitlab seems to approve it:

https://gitlab.com/danielhb/qemu/-/pipelines/1229836634

Feel free to take just patch 1 if we're not sure about re-enabling these tests in Gitlab.

Changes from v3:
- patches 1 to 6: dropped
- patch 1 (new):
- create and remove temporary dirs on each test
- v2 link: https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg06335.html

[1] https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg06400.html

Daniel Henrique Barboza (2):
qtest/virtio-9p-test.c: create/remove temp dirs after each test qtest/virtio-9p-test.c: remove g_test_slow() gate

 tests/qtest/virtio-9p-test.c | 32 +++++++++++---------------------
 1 file changed, 11 insertions(+), 21 deletions(-)
Signature · 1 line
2.44.0