diff --git a/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py b/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py index 8df675d8f1..3921afd8f2 100755 --- a/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py +++ b/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py @@ -58,6 +58,7 @@ from lib_autotest import * def find_open_port(): global serial_port, ser max_ports=100 + serial_port='' while True: if os.path.exists(serial_port) == True: return serial_port diff --git a/cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py b/cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py index eaa0c8298a..9646cc69ff 100755 --- a/cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py +++ b/cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py @@ -58,6 +58,7 @@ from lib_autotest import * def find_open_port(): global serial_port, ser max_ports=100 + serial_port='' while True: if os.path.exists(serial_port) == True: return serial_port