[internal #1825264] f_EPTF_ExecCtrlClient_groupFinishedDetectedFn is fixed if traffic case is not running:

  Fixes problem:
  if group finish initiates a phase finish that stops the traffic case, but another group finish condition is fullfilled: the following warning is logged
  13:50:59.663907 WARNING IMS_TC_CallOrig_Functions.ttcn:309(function:f_IMS_TC_CallOrig_behavior)->EPTF_CLL_Base_Functions.ttcn:512(function:f_EPTF_Base_wait4Shutdown)->EPTF_CLL_ExecCtrlClient_Functions.ttcn:1515(altstep:as_EPTF_ExecCtrlClient_MgmtIf)->EPTF_CLL_ExecCtrlClient_Functions.ttcn:582(altstep:as_EPTF_ExecCtrlClient_MgmtIf_groupFinished)->EPTF_CLL_ExecCtrlClient_Functions.ttcn:534(function:f_EPTF_ExecCtrlClient_processGroupFinished)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:4483(function:f_EPTF_LGenBase_groupFinishedDetected)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:5571(function:f_EPTF_LGenBase_processGroupFinished)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:6382(function:f_EPTF_LGenBase_disableTrafficCaseInternal)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:5183(function:f_EPTF_LGenBase_checkLaunchFinished)->EPTF_CLL_LGenBase_PhaseFunctions.ttcn:1079(function:f_EPTF_LGenBase_callPhaseFinishConditions)->EPTF_CLL_LGenBase_PhaseFunctions.ttcn:1123(function:f_EPTF_LGenBase_setActualPhaseFinished)->EPTF_CLL_LGenBase_PhaseFunctions.ttcn:936(function:f_EPTF_LGenBase_callPhaseActions)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:1871(function:f_EPTF_LGenBase_finishTCByIdx)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:4441(function:f_EPTF_LGenBase_groupFinishedDetected)->EPTF_CLL_ExecCtrlClient_Functions.ttcn:499(function:f_EPTF_ExecCtrlClient_groupFinishedDetectedFn)->EPTF_CLL_LGenBase_TrafficFunctions.ttcn:3018(function:f_EPTF_LGenBase_pauseTrafficCaseByIdx)->EPTF_CLL_LGenBase_LoggingFunctions.ttcn:124(function:f_EPTF_LGenBase_loggingWarning)->EPTF_CLL_Logging_Functions.ttcn:136(function:f_EPTF_Logging_warningV2)->EPTF_CLL_Logging_Functions.ttcn:1636(function:f_EPTF_Logging_logSelection)->EPTF_CLL_Logging_Functions.ttcn:1568(function:f_EPTF_Logging_warningPrivate) EPTF_LGenBase:Warning: f_EPTF_LGenBase_pauseTrafficCaseByIdx: Pause called for tc CallOrig_CANCEL_503.CallOrig_CANCEL_503.deRegistration in state Terminated

Change-Id: I8bfcaade00dcbb7f02ff3bcc73c525d6a7cc8e6a
Signed-off-by: József Gyürüsi <jozsef.gyurusi@ericsson.com>
diff --git a/src/ExecCtrl/EPTF_CLL_ExecCtrlClient_Functions.ttcn b/src/ExecCtrl/EPTF_CLL_ExecCtrlClient_Functions.ttcn
index 842a22a..1560985 100644
--- a/src/ExecCtrl/EPTF_CLL_ExecCtrlClient_Functions.ttcn
+++ b/src/ExecCtrl/EPTF_CLL_ExecCtrlClient_Functions.ttcn
@@ -496,7 +496,10 @@
     vl_counters[c_EPTF_ExecCtrl_groupFinish_RangeLoops] := f_EPTF_ExecCtrlClient_getCounterForGroupFinishConditionType(pl_tcIdx,c_EPTF_ExecCtrl_groupFinish_RangeLoops);
     
     ExecCtrlClient_MgmtIf_CP.send(EPTF_ExecCtrlClient_GroupFinished:{tcId := {vl_eGrpName,vl_scName,vl_tcName}, condition := pl_condition, thresholds := vl_counters});
-    f_EPTF_LGenBase_pauseTrafficCaseByIdx(pl_tcIdx);
+
+    if (f_EPTF_LGenBase_getTcState(pl_tcIdx) == c_EPTF_LGenBase_tcStateRunning) {
+        f_EPTF_LGenBase_pauseTrafficCaseByIdx(pl_tcIdx);
+    }
   } else {
     v_ExecCtrlClient_abortNextGroupFinish := true; // next group finish will be aborted by default
   }