git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick and dirty hack around a misbehaving gethostbyaddr()
[tests.git]
/
qaapi
/
qa
/
tests
/
Test.py
diff --git
a/qaapi/qa/tests/Test.py
b/qaapi/qa/tests/Test.py
index
41188d7
..
0307ca7
100644
(file)
--- a/
qaapi/qa/tests/Test.py
+++ b/
qaapi/qa/tests/Test.py
@@
-31,7
+31,7
@@
class Test:
return True
def __init__(self, config = None):
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
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"
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
return result