Enable igmp test to work under voltha.
Also change cordSubscriber voltha test to work with the voltha auto configure.
Import teardown_module as well in other test cases.
The tests that are not supposed to work with voltha or rely on auto configure should set:
VOLTHA_AUTO_CONFIGURE = False
in their test class.
Change-Id: Ibbe60e524d31e7079e0423e9e3c390ee17dee2a7
diff --git a/src/test/voltha/volthaTest.py b/src/test/voltha/volthaTest.py
index be2ad7d..6844e0d 100644
--- a/src/test/voltha/volthaTest.py
+++ b/src/test/voltha/volthaTest.py
@@ -11,7 +11,7 @@
from nose.tools import *
from nose.twistedtools import reactor, deferred
from twisted.internet import defer
-from CordTestConfig import setup_module
+from CordTestConfig import setup_module, teardown_module
from CordTestUtils import log_test
from VolthaCtrl import VolthaCtrl
from CordTestUtils import log_test, get_controller
@@ -167,6 +167,7 @@
#onos_config_path = os.path.join(test_path, '..', 'setup/onos-config')
olt_conf_file = os.getenv('OLT_CONFIG_FILE', os.path.join(test_path, '..', 'setup/olt_config.json'))
onos_restartable = bool(int(os.getenv('ONOS_RESTART', 0)))
+ VOLTHA_AUTO_CONFIGURE = False
VOLTHA_ENABLED = True
INTF_TX_DEFAULT = 'veth2'
INTF_RX_DEFAULT = 'veth0'
@@ -4395,4 +4396,3 @@
12. Enable olt device which is disable at step 9.
13. Repeat steps 4,5, 7 and 8.
"""
-