minor changes in tests
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Thu, 31 Mar 2011 17:07:18 +0000 (19:07 +0200)
committerAlina Quereilhac <alina.quereilhac@inria.fr>
Thu, 31 Mar 2011 17:07:18 +0000 (19:07 +0200)
test/lib/test_util.py
test/testbeds/netns/design.py

index 1f321c4..ffd5e46 100644 (file)
@@ -29,18 +29,13 @@ def ns3_library_path():
         return os.environ["NEPI_NS3LIBRARY"]
     return None
 
-def autoconfig_ns3_backend(conf):
-    if ns3_bindings_path():
-        conf.set_attribute_value("Ns3Bindings", ns3_bindings_path())
-    if ns3_library_path():
-        conf.set_attribute_value("Ns3Library", ns3_library_path())
-
 def ns3_usable():
     if ns3_library_path():
         try:
             ctypes.CDLL(ns3_library_path(), ctypes.RTLD_GLOBAL)
         except:
             return False
+
     if ns3_bindings_path():
         sys.path.insert(0, ns3_bindings_path())
 
index b68d0d5..f78efbe 100755 (executable)
@@ -9,7 +9,6 @@ import unittest
 import uuid
 
 class NetnsDesignTestCase(unittest.TestCase):
-    @test_util.skipUnless(os.getuid() == 0, "Test requires root privileges")
     def test_design_if(self):
         exp_desc = ExperimentDescription()
         testbed_version = "01"