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?
 If yes, what is it?

-- 
huai.sinaapp.com
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to