From 5481e609ef79947659c2dcb0b0d7c70d2a51d590 Mon Sep 17 00:00:00 2001
From: Rohit Gupta <rohit.gupta@eurecom.fr>
Date: Mon, 4 Apr 2016 15:35:31 +0200
Subject: [PATCH] minor fix for serial port detection

---
 cmake_targets/autotests/tools/configure_cots_bandrich_ue.py   | 1 +
 cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py | 1 +
 2 files changed, 2 insertions(+)

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
-- 
GitLab