Change misc to test_utils for tempest test

tempest.lib.common.utils.misc.find_test_caller has been moved into
the tempest.lib.common.utils.test_utils module. Calling the
find_test_caller function with its old location is deprecated in Newton.

Change-Id: If8219363aa597326b431b436c85914db5018452a
This commit is contained in:
wangxiyuan 2017-02-10 09:40:50 +08:00
parent d601a11e91
commit 23013a9d44

View File

@ -15,7 +15,7 @@
import time
from tempest.lib.common.utils import misc as misc_utils
from tempest.lib.common.utils import test_utils
from tempest.lib import exceptions as lib_exc
@ -61,7 +61,7 @@ def wait_for_bm_node_status(client, node_id, attr, status, timeout=None,
'status': status,
'timeout': client.build_timeout})
message += ' Current state of %s: %s.' % (attr, status_curr)
caller = misc_utils.find_test_caller()
caller = test_utils.find_test_caller()
if caller:
message = '(%s) %s' % (caller, message)
raise lib_exc.TimeoutException(message)