quick and dirty hack around a misbehaving gethostbyaddr()
[tests.git] / qaapi / qa / tests / Test.py
index 41188d7..0307ca7 100644 (file)
@@ -31,7 +31,7 @@ class Test:
        return True
 
     def __init__(self, config = None):
-        if config is None: config = Config()
+        if not config: config = Config()
        self.name = self.__class__.__name__
        self.path=os.path.abspath(os.path.dirname(sys.argv[0]))
        self.config = config
@@ -51,14 +51,7 @@ class Test:
 
        module = self.__class__.__module__.replace(".", os.sep)
        file = self.path + os.sep + module + ".py"
-       try:
-           result = self.call(*args, **kwds)
-       except NameError:
-           command = "%s %s" % (file, " ".join(args))
-           utils.header(command)
-           (stdout, stderr) = utils.popen(command)
-           print "".join(stdout)
-           result = None
+       result = self.call(*args, **kwds)
  
        return result