Re: [PATCH] tests: qemu: Don't crash when capability file can't be parsed

2021-08-16 Thread Martin Kletzander
On Mon, Aug 16, 2021 at 10:29:39AM +0200, Peter Krempa wrote: On Mon, Aug 16, 2021 at 10:17:26 +0200, Martin Kletzander wrote: On Thu, Aug 12, 2021 at 04:55:04PM +0200, Peter Krempa wrote: > In case the test directory contains invalid XML (this doesn't happen > upstream, but can when

Re: [PATCH] tests: qemu: Don't crash when capability file can't be parsed

2021-08-16 Thread Peter Krempa
On Mon, Aug 16, 2021 at 10:17:26 +0200, Martin Kletzander wrote: > On Thu, Aug 12, 2021 at 04:55:04PM +0200, Peter Krempa wrote: > > In case the test directory contains invalid XML (this doesn't happen > > upstream, but can when developing, e.g. by forgetting git conflict > > markers) the tests

Re: [PATCH] tests: qemu: Don't crash when capability file can't be parsed

2021-08-16 Thread Martin Kletzander
On Thu, Aug 12, 2021 at 04:55:04PM +0200, Peter Krempa wrote: In case the test directory contains invalid XML (this doesn't happen upstream, but can when developing, e.g. by forgetting git conflict markers) the tests would crash as in case when 'testQemuInfoSetArgs' fails we'd still invoke the

[PATCH] tests: qemu: Don't crash when capability file can't be parsed

2021-08-12 Thread Peter Krempa
In case the test directory contains invalid XML (this doesn't happen upstream, but can when developing, e.g. by forgetting git conflict markers) the tests would crash as in case when 'testQemuInfoSetArgs' fails we'd still invoke the test in qemuxml2argv and qemuxml2xml tests. Add a 'break'