From 2ab1b9697d3991cffd7d9ffeb0c62c9d12c138bf Mon Sep 17 00:00:00 2001 From: Remi Hardy Date: Wed, 9 Sep 2020 17:58:16 +0200 Subject: [PATCH] fixed cls_cots_ue.py packages ; fixed terminate_ue_flag copy-paste error --- ci-scripts/cls_cots_ue.py | 3 +++ ci-scripts/main.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ci-scripts/cls_cots_ue.py b/ci-scripts/cls_cots_ue.py index 56889e1f79..59c2713b47 100644 --- a/ci-scripts/cls_cots_ue.py +++ b/ci-scripts/cls_cots_ue.py @@ -27,6 +27,9 @@ # pexpect #--------------------------------------------------------------------- +#to use isfile +import os +import sys #to use logging.info() import logging #to create a SSH object locally in the methods diff --git a/ci-scripts/main.py b/ci-scripts/main.py index fb5260b2c2..86fd9d84df 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -3656,7 +3656,8 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re GetParametersFromXML(action) if action == 'Initialize_UE' or action == 'Attach_UE' or action == 'Detach_UE' or action == 'Ping' or action == 'Iperf' or action == 'Reboot_UE' or action == 'DataDisable_UE' or action == 'DataEnable_UE' or action == 'CheckStatusUE': if (CiTestObj.ADBIPAddress != 'none'): - terminate_ue_flag = False + #in these cases, having no devices is critical, GetAllUEDevices function has to manage it as a critical error, reason why terminate_ue_flag is set to True + terminate_ue_flag = True CiTestObj.GetAllUEDevices(terminate_ue_flag) if action == 'Build_eNB': RAN.BuildeNB()