tests/cli_tests/run_python_example.bash
branchwxPython4
changeset 3719 4906295e0be6
parent 3543 6210c08c1c41
equal deleted inserted replaced
3718:7841b651d601 3719:4906295e0be6
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 # Run python example throug command line, and check usual output
     3 # Run python example throug command line, and check usual output
     4 
     4 
     5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home ~/src/beremiz/exemples/python build transfer run;
     5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/exemples/python build transfer run;
     6 
     6 
     7 while read -u ${COPROC[0]} line; do 
     7 while read -u ${COPROC[0]} line; do 
     8     echo "$line"
     8     echo "$line"
     9     if [[ "$line" == *Grumpf* ]]; then
     9     if [[ "$line" == *Grumpf* ]]; then
    10         pkill -9 -s $COPROC_PID 
    10         pkill -9 -s $COPROC_PID