On 8/17/21 6:38 AM, jx8zjs wrote:
From: Jinsheng Zhang <zhangjl02(a)inspur.com>
Test virNetDevOpenvswitchInterfaceSetQos and
virNetDevOpenvswitchInterfaceClearQos with dryrun method.
Signed-off-by: zhangjl02 <zhangjl02(a)inspur.com>
---
tests/virnetdevopenvswitchtest.c | 196 ++++++++++++++++++++++++++++++-
1 file changed, 195 insertions(+), 1 deletion(-)
-VIR_TEST_MAIN(mymain);
+VIR_TEST_MAIN_PRELOAD(mymain, VIR_TEST_MOCK("virnetdevbandwidth"))
Nit pick - here we like to put VIR_TEST_MOCK() on a separate line.
And huge thank you for introducing the test. It was on my todo list.
Michal