Merge "Log AttributeError as 'info' instead of 'exception'"
diff --git a/tempest/test.py b/tempest/test.py
index 2ed6665..48e0283 100644
--- a/tempest/test.py
+++ b/tempest/test.py
@@ -270,7 +270,14 @@
try:
cls.tearDownClass()
except Exception as te:
- LOG.exception("tearDownClass failed: %s" % te)
+ tetype, _, _ = sys.exc_info()
+ # TODO(gmann): Till we split-up resource_setup &
+ # resource_cleanup in more structural way, log
+ # AttributeError as info instead of exception.
+ if tetype is AttributeError:
+ LOG.info("tearDownClass failed: %s" % te)
+ else:
+ LOG.exception("tearDownClass failed: %s" % te)
try:
raise etype(value), None, trace
finally: