tests/cli_tests/iec61131_lang_test.bash
changeset 3824 5f0b02ab500c
parent 3749 fda6c1a37662
equal deleted inserted replaced
3823:a95b5ee1a0ea 3824:5f0b02ab500c
     5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/iec61131_lang_test build transfer run;
     5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/iec61131_lang_test build transfer run;
     6 
     6 
     7 while read -t 5 -u ${COPROC[0]} line; do 
     7 while read -t 5 -u ${COPROC[0]} line; do 
     8     echo "$line"
     8     echo "$line"
     9     if [[ "$line" == *ALL\ TESTS\ OK* ]]; then
     9     if [[ "$line" == *ALL\ TESTS\ OK* ]]; then
    10         pkill INT -s $COPROC_PID 
    10         pkill -9 -s $COPROC_PID 
    11         exit 0
    11         exit 0
    12     fi
    12     fi
    13 done
    13 done
    14 
    14 
    15 exit 42
    15 exit 42