KVM test: use the imp module to import subtest module by filename

This fixes a problem with importing the autotest subtest.
It may be safer than importing tests.<testname> because, according to the
Python documentation, imp.find_module() searches only the given path,
regardless of what's in sys.path.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3996 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed