]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Fix up test numbering in qemuxml2argvtest
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 17 Apr 2018 09:42:55 +0000 (11:42 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 17 Apr 2018 11:50:20 +0000 (13:50 +0200)
commit70255fa596c0b9ab99ea94afce78bbd4710c9288
tree99f2c2bc32a811833679e00d4c1ccf984e87e368
parentfd247f8fe7ccbd92081e009c9bcee0a70ae26854
tests: Fix up test numbering in qemuxml2argvtest

Due to conditional execution of virTestRun(), the testCounter was incremented
only if all the cases were run.  When using VIR_TEST_RANGE=x-y, first x/2 of the
increments were skipped and that made figuring out a precise case a PITA.
Moving the condition into the test function makes it way nicer to find out the
test numbers to use in VIR_TEST_RANGE.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/qemuxml2argvtest.c