Commit 3af54e91 authored by Yann Garcia's avatar Yann Garcia
Browse files

Bug fixed in plantuml/__main__.py

parent c6e1adf2
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -121,7 +121,6 @@ def process_line(line):
            else:
            else:
                out_streams.write(f"hnote across #gray: error\n")
                out_streams.write(f"hnote across #gray: error\n")
            out_streams.write(f"note left: {match['hours']}:{match['minutes']}:{match['seconds']}.{match['milliseconds']}\n")
            out_streams.write(f"note left: {match['hours']}:{match['minutes']}:{match['seconds']}.{match['milliseconds']}\n")
            out_streams.write('@enduml\n')
        else:
        else:
            logger.info('Got unsupported item')
            logger.info('Got unsupported item')
        # End of 'if' statement
        # End of 'if' statement
@@ -168,6 +167,9 @@ def main():
                process_line(line)
                process_line(line)
                line = in_stream.readline()
                line = in_stream.readline()
            # End of 'for' statement
            # End of 'for' statement
            # Add the end tag
            out_streams.write('@enduml\n')
            out_streams.flush()
        # End of 'with' statement
        # End of 'with' statement
    # End of 'with' statement
    # End of 'with' statement


+38 −37
Original line number Original line Diff line number Diff line
/**
/**
 *  @author   ETSI
 *  @author   ETSI
 *  @version  $URL: https://oldforge.etsi.org/svn/LibCommon/tags/v1.4.0/ttcn/LibCommon_Sync.ttcn $
 *  @version  $URL$
 *            $Id: LibCommon_Sync.ttcn 66 2017-03-06 09:59:41Z filatov $
 *            $Id$
 *  @desc     This module implements _one_ generic synchronization mechanism
 *  @desc     This module implements _one_ generic synchronization mechanism
 *            for TTCN-3 test cases with one or more test components.
 *            for TTCN-3 test cases with one or more test components.
 *            Key concept is here that one test component acts as a
 *            Key concept is here that one test component acts as a
@@ -62,7 +62,7 @@
module LibCommon_Sync {
module LibCommon_Sync {


  //Common
  //Common
  import from LibCommon_BasicTypesAndValues { type UInt } ;
  import from LibCommon_BasicTypesAndValues all;
  import from LibCommon_AbstractData all;
  import from LibCommon_AbstractData all;
  import from LibCommon_VerdictControl all;
  import from LibCommon_VerdictControl all;


@@ -625,7 +625,7 @@ module LibCommon_Sync {
       * @remark User shall stop the component
       * @remark User shall stop the component
       */
       */
      altstep a_shutdown()
      altstep a_shutdown()
      runs on ClientSyncComp {
      runs on BaseSyncComp {
        []  syncPort.receive(m_syncServerStop){
        []  syncPort.receive(m_syncServerStop){
            tc_sync.stop ;
            tc_sync.stop ;
            log("**** a_shutdown: Test component received STOP signal from MTC **** ");
            log("**** a_shutdown: Test component received STOP signal from MTC **** ");
@@ -732,7 +732,7 @@ module LibCommon_Sync {
        } else if ( p_syncId == c_initDone ) {
        } else if ( p_syncId == c_initDone ) {
          log("**** f_serverSyncClientsTimed: Sync server now starting UPPER TESTER synchronization ... ****") ;
          log("**** f_serverSyncClientsTimed: Sync server now starting UPPER TESTER synchronization ... ****") ;
        } else {
        } else {
          log("**** f_serverSyncClientsTimed: Sync server now starting handling of next synchronization point ... ****") ;
          log("**** f_serverSyncClientsTimed: Sync server now starting handling of " & p_syncId  & " synchronization point ... ****") ;
        }
        }
        tc_sync.start(p_execTimeLimit) ;
        tc_sync.start(p_execTimeLimit) ;
        alt{
        alt{
@@ -747,6 +747,7 @@ module LibCommon_Sync {
              repeat;
              repeat;
            }
            }
          []  syncPort.receive(m_syncClientReady(p_syncId)) -> sender v_clientRef {
          []  syncPort.receive(m_syncClientReady(p_syncId)) -> sender v_clientRef {
              log("**** f_serverSyncClientsTimed: Sync server received READY signal from a client - server will wait for all clients to reach this synchronization point ****");
              if(not f_isPresentInArray(v_clientRef, v_clientRefs)) {
              if(not f_isPresentInArray(v_clientRef, v_clientRefs)) {
                  v_clientRefs[v_noOfRecvdSyncMsgs] := v_clientRef;
                  v_clientRefs[v_noOfRecvdSyncMsgs] := v_clientRef;
                  v_noOfRecvdSyncMsgs := v_noOfRecvdSyncMsgs + 1;
                  v_noOfRecvdSyncMsgs := v_noOfRecvdSyncMsgs + 1;