]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: qemumonitor: Simplify handling of end of file in full file test
authorPeter Krempa <pkrempa@redhat.com>
Thu, 3 May 2018 09:38:23 +0000 (11:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Jun 2018 08:27:50 +0000 (10:27 +0200)
commitdcea889b134e01f41e692ab0886efc0af0647835
tree049b568940dcb3b65b57f1973f4748521fa32a13
parent215167042ac2a9ee8c37098b525da3c6f9fb8b34
tests: qemumonitor: Simplify handling of end of file in full file test

On EOF, the loop can be terminated right away since most of it is
skipped anyways and the handling of the last command is repeated after
the loop.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/qemumonitortestutils.c