OSDN Git Service

tests/qtest: misc tweaks to readconfig
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 9 Aug 2022 09:38:54 +0000 (05:38 -0400)
committerThomas Huth <thuth@redhat.com>
Tue, 16 Aug 2022 09:36:21 +0000 (11:36 +0200)
commit9c23d7193497bbada5915351ce06b7952dd86f6a
tree3e751bcefd9d7f4f8b78461dd4999b8d47c07e35
parentd102b8162a1e5fe8288d4d5c01801ce6536ac2d1
tests/qtest: misc tweaks to readconfig

The property name parameter is ignored when visiting a top
level type, but the obvious typo should be fixed to avoid
confusion. A few indentation issues were tidied up. We
can break out of the loop when finding the RNG device.
Finally, close the temp FD immediately when no longer
needed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220809093854.168438-1-berrange@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/readconfig-test.c