----- Original Message -----
> Hi, I'm an open source lover in China, and I'm new to kvm-autotest.
> while reading source file
> "autotest/client/tests/kvm/kvm.py", I met with the following code:
>
> try:
> try:
> try:
> # Get the test routine corresponding to the
> specified
> # test type
> t_type = params.get("type")
> # Verify if we have the correspondent source file
> for it
> virt_dir = os.path.dirname(virt_utils.__file__)
> subtest_dir_virt = os.path.join(virt_dir,
> "tests")
> subtest_dir_kvm = os.path.join(self.bindir,
> "tests")
> subtest_dir = None
> for d in [subtest_dir_kvm, subtest_dir_virt]:
> module_path = os.path.join(d, "%s.py" %
> t_type)
> if os.path.isfile(module_path):
> subtest_dir = d
> break
>
> That seems, kvm subtests should searched about in two separate
> folders, namely subtest_dir_virt and subtest_dir_kvm, which are
> "autotest/client/virt/tests" and "autotest/client/tests/kvm/tests"
> respectively on my machine. I am wondering why not all thests
> subtests be in a single folder, e.g. all be in
> "autotest/client/tests/kvm/tests". Why they are placed in two
> different places? Any difference with these two sets of kvm
> subtests?
We always put kvm subtests into "autotest/client/tests/kvm/tests/"
But if some tests can also be used by other (virt) sub project,
such as libvirt (autotest/client/tests/libvirt/libvirt.py),
we will put them to "autotest/client/virt/tests"
Amos.
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest