Skip to contentSkip to conversation

Fix import of modules from inside the kvm module.

PATCH Applied Lucas Meneghel Rodrigues 1 participant 2 messages Jun 1, 2009 – Jun 5, 2009 KVM

lore
Share & tools
lore
#0 lore raw

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.

---
 client/tests/kvm/control |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
client/tests/kvm/control +2 -2
index eb38686..154d513 100644
@@ -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
#1 lore raw
Quoted 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_2 to kvm. Fixing the problem.

Applied to trunk.

Signature · 3 lines
Lucas Meneghel Rodrigues
Software Engineer (QE)
Red Hat - Emerging Technologies