Fix import of modules from inside the kvm module.
PATCH 1/1 Fix import of modules from inside the kvm module.
Import of modules present inside the kvm test is broken due to a path that wasn't converted when the test got renamed from kvm_runtest_2 to kvm. Fixing the problem.
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/tests/kvm/control | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
client/tests/kvm/control +2 -2
@@ -45,8 +45,8 @@ Each test is appropriately documented on each test docstrings. import sys, os -# enable modules import from current directory (tests/kvm_runtest_2) -pwd = os.path.join(os.environ['AUTODIR'],'tests/kvm_runtest_2') +# enable modules import from current directory (tests/kvm) +pwd = os.path.join(os.environ['AUTODIR'],'tests/kvm') sys.path.append(pwd) # ------------------------
Signature · 1 line
1.6.2.2
Lucas Meneghel Rodrigues
AppliedQuoted 3 lines · Lucas Meneghel Rodrigues
Import of modules present inside the kvm test is broken due to a path that wasn't converted when the test got renamed from
kvm_runtest_2to kvm. Fixing the problem.
Applied to trunk.
Signature · 3 lines
Lucas Meneghel Rodrigues Software Engineer (QE) Red Hat - Emerging Technologies