Moved multithread_func related functions to utils.py
Functions related to multithread_func are moved from tel_test_utils.py
to utils.py, such as:
- task_wrapper (only called by functions below)
- run_multithread_func_async
- run_multithread_func
- multithread_func
- multithread_func_and_check_results
The purpose is to avoid circular import happening during
re-organizing tel_test_utils.py.
Lines of import in all involved test classes and utils are
updated.
Bug: None
Test: Yes, locally
Change-Id: I89e1667fcd0cc671323a4fe35c4079456ab3f560
diff --git a/acts_tests/acts_contrib/test_utils/tel/tel_dsds_utils.py b/acts_tests/acts_contrib/test_utils/tel/tel_dsds_utils.py
index 56ad4b3..f9b09cd 100644
--- a/acts_tests/acts_contrib/test_utils/tel/tel_dsds_utils.py
+++ b/acts_tests/acts_contrib/test_utils/tel/tel_dsds_utils.py
@@ -20,6 +20,7 @@
from acts import signals
from acts.utils import rand_ascii_str
+from acts.libs.utils.multithread import multithread_func
from acts_contrib.test_utils.tel.loggers.protos.telephony_metric_pb2 import TelephonyVoiceTestResult
from acts_contrib.test_utils.tel.tel_defines import INVALID_SUB_ID
from acts_contrib.test_utils.tel.tel_defines import MAX_WAIT_TIME_SMS_RECEIVE
@@ -45,7 +46,6 @@
from acts_contrib.test_utils.tel.tel_test_utils import hangup_call
from acts_contrib.test_utils.tel.tel_test_utils import initiate_call
from acts_contrib.test_utils.tel.tel_test_utils import log_messaging_screen_shot
-from acts_contrib.test_utils.tel.tel_test_utils import multithread_func
from acts_contrib.test_utils.tel.tel_test_utils import mms_send_receive_verify
from acts_contrib.test_utils.tel.tel_test_utils import num_active_calls
from acts_contrib.test_utils.tel.tel_test_utils import power_off_sim