Skip to contentSkip to conversation

KVM test: nic_bonding: Introduce absolute namespace for test imports

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Jan 12, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: nic_bonding: Introduce absolute namespace for test imports

In order to avoid namespace collisions, turn the kvm test dir into a module and, whenever importing full tests, use the complete namespace. The full namespace might not be pretty, but it is certainly safer, specially executing from autoserv.

---
 client/tests/kvm/tests/nic_bonding.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 create mode 100644 client/tests/kvm/__init__.py
client/tests/kvm/__init__.py new file +0 -0
new file mode 100644
index 0000000..e69de29
client/tests/kvm/tests/nic_bonding.py +1 -1
index 692978c..ca9d70a 100644
@@ -1,6 +1,6 @@
 import logging, time, threading
 from autotest_lib.client.common_lib import error
-from tests import file_transfer
+from autotest_lib.client.tests.kvm.tests import file_transfer
 import kvm_test_utils, kvm_utils
 
 def run_nic_bonding(test, params, env):
Signature · 1 line
1.7.3.4