changeset 3928 | 5c662d2e3f72 |
parent 3926 | a6ec38dcbfb5 |
3922:ffc8da83fdc2 | 3928:5c662d2e3f72 |
---|---|
1 #!/bin/bash |
|
2 |
|
3 # Run python example throug command line, and check usual output |
|
4 |
|
5 coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/tests/projects/modbus_test_tcp build transfer run; |
|
6 |
|
7 while read -u ${COPROC[0]} line; do |
|
8 echo "$line" |
|
9 if [[ "$line" == "TEST OK" ]]; then |
|
10 pkill -9 -s $COPROC_PID |
|
11 exit 0 |
|
12 fi |
|
13 done |
|
14 |
|
15 exit 42 |