<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 1, 2015 at 1:38 PM Olav Philipp Henschel <<a href="mailto:olavph@linux.vnet.ibm.com">olavph@linux.vnet.ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a few questions regarding test running, the multiplexer and test<br>
variants:<br>
<br>
In avocado-vt, each test has a cartesian config file that is applied<br>
only to that single test. Is there any plan to do something similar with<br>
multiplex files? Sometimes I want to create variants to one test but not<br>
the other.<br></blockquote><div><br></div><div>Strictly speaking, each individual .cfg file ends up merged on a goddamn giant subtests.cfg file.<br><br></div><div>I'd say we want to support modularity between multiplex files, but I'm not sure if we already have an include system implemented there. Have we, Lukas?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there currently any way of making a test dependent on another? For<br>
example, if an unattended_install test fails, I want avocado to skip the<br>
other tests.<br></blockquote><div><br></div><div>For avocado-vt, yes, sure. The cartesian config has provisions for that. However, for avocado-virt (AKA the next generation), we had endless discussions about that and reached the conclusion that having a dependency system is bad design. Each test should be able to run independently of other tests. If you need an installed vm for the tests, you should be able to specify that as a requirement for your test. The requires system is something still being designed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there any way of specifying a set of tests to run, instead of passing<br>
each one of them? In avocado-vt, we can specify the test provider, or a<br>
substring of the complete test name. It would be useful if we could pass<br>
globs or something like that to execute all tests in a directory.<br></blockquote><div><br></div><div>You can pass the test directory to avocado. The test resolver will find and run all the tests inside that directory:</div><div><br></div><div>avocado run examples/tests</div><div>JOB ID     : 90da56e7af74bc493a6c8990d805c585380abc6b</div><div>JOB LOG    : /home/lmr/avocado/job-results/job-2015-12-02T04.27-90da56e/job.log</div><div>TESTS      : 57</div><div> (1/57) examples/tests/warntest.py:WarnTest.test: WARN (0.00 s)</div><div> (2/57) examples/tests/passtest.py:PassTest.test: PASS (0.00 s)</div><div> ...<br><br>So I believe that covers your use case.</div></div></div>