Dear Lukáš,

Thanks very much for your help! 
It is great helpful!  ^_^

Using a custom tests.cfg and vt-filter, both of which could work well.

Thanks again,
Zhiguo Wu



> -----Original Messages-----
&gt; From: "Lukáš Doktor" <ldok...@redhat.com>
&gt; Sent Time: 2022-08-10 16:59:23 (Wednesday)
&gt; To: "吴志国" <wuzhi...@loongson.cn>, avocado-devel@redhat.com
&gt; Cc: 
&gt; Subject: Re: [Avocado-devel] How to enable and run SR-IOV testcases with 
Avocado ?
&gt; 
&gt; Dear Wu,
&gt; 
&gt; the original intention for advanced setups was to use a custom tests.cfg 
via "--vt-config", but if you only need to remove some basic filters, you can 
also use "--vt-filter-default-filters". In your case something like:
&gt; 
&gt;     avocado -V list --vt-guest-os RHEL.8.devel --vt-filter-default-filters 
no_pci_assignable boot
&gt; 
&gt; should do to apply all default filters but the "no_pci_assignable". You 
can then use "--vt-only-filter" and "--vt-no-filter" to apply additional 
filters (like "--vt-only-filter vf_assignable" to only run vf_assignable).
&gt; 
&gt; Note you might also override some params globally via "--vt-extra-params" 
which comes really handy when overriding some attributes (like 
"--vt-extra-params driver_option=10"). Those extra params are added after 
parsing all cfg files so they get the highest priority.
&gt; 
&gt; Hopefully this helps,
&gt; Lukáš
&gt; 
&gt; 
&gt; Dne 09. 08. 22 v 14:26 吴志国 napsal(a):
&gt; &gt; Hi avocado development team,
&gt; &gt; 
&gt; &gt; 
&gt; &gt; I am working on KVM testing. I am trying to run&nbsp;SR-IOV testcases 
with Avocado.&nbsp;But I found that there is not any testcases about SR-IOV in 
results of "avocado list".&nbsp;
&gt; &gt; 
&gt; &gt; 
&gt; &gt; It is&nbsp;unuseful, throught I tried to modify some config file, as 
following:
&gt; &gt; 
&gt; &gt;     1. modified "pf_assignable"/"vf_assignable" variants in 
avocado-vt:&nbsp;virttest/shared/cfg/guest-hw.cfg;
&gt; &gt; 
&gt; &gt;     2. removed "only pf_assignable"/"only vf_assignable" in tp-qemu 
config file;
&gt; &gt; 
&gt; &gt;     3.&nbsp;modified&nbsp;_process_options function&nbsp;in 
avocado-vt:&nbsp;avocado_vt/options.py.
&gt; &gt; 
&gt; &gt; 
&gt; &gt; *Could you please share your comments and&nbsp;suggestions about 
SR-IOV testing**?*
&gt; &gt; 
&gt; &gt; 
&gt; &gt; By the way,&nbsp;I could run the general testcases with avocado.&nbsp;
&gt; &gt; 
&gt; &gt; 
&gt; &gt; root@localhost:/root/avocado-vt# avocado run 
system_reset,system_powerdown --vt-type qemu&nbsp;
&gt; &gt; JOB ID&nbsp; &nbsp; &nbsp;: 5c24bd3aea6a743d24f225f96f61a77cdbedca71
&gt; &gt; JOB LOG&nbsp; &nbsp; : 
/root/avocado/job-results/job-2022-08-09T19.49-5c24bd3/job.log
&gt; &gt; &nbsp;(1/2) type_specific.io-github-autotest-qemu.system_reset: PASS 
(61.99 s)
&gt; &gt; &nbsp;(2/2) type_specific.io-github-autotest-qemu.system_powerdown: 
PASS (47.17 s)
&gt; &gt; RESULTS&nbsp; &nbsp; : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | 
INTERRUPT 0 | CANCEL 0
&gt; &gt; JOB TIME&nbsp; &nbsp;: 110.87 s
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; Best Regards,
&gt; &gt; 
&gt; &gt; Zhiguo Wu
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
/本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。&nbsp;
&gt; &gt; This email and its attachments contain confidential information from 
Loongson Technology , which is intended only for the person or entity whose 
address is listed above. Any use of the information contained herein in any way 
(including, but not limited to, total or partial disclosure, reproduction or 
dissemination) by persons other than the intended recipient(s) is prohibited. 
If you receive this email in error, please notify the sender by phone or email 
immediately and delete it.&nbsp;/
</wuzhi...@loongson.cn></ldok...@redhat.com>

本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
 
This email and its attachments contain confidential information from Loongson 
Technology , which is intended only for the person or entity whose address is 
listed above. Any use of the information contained herein in any way 
(including, but not limited to, total or partial disclosure, reproduction or 
dissemination) by persons other than the intended recipient(s) is prohibited. 
If you receive this email in error, please notify the sender by phone or email 
immediately and delete it. 

Reply via email to