mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-14 18:07:18 +00:00
Exterminate TFWConnector from TestFSM
This commit is contained in:
parent
14f300d610
commit
8b15da39ae
@ -4,25 +4,21 @@ states:
|
||||
- name: '0'
|
||||
- name: '1'
|
||||
on_enter: |
|
||||
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 1!')"
|
||||
printf "Entered state 1!\n\n" > /tmp/tfw_bot_send
|
||||
- name: '2'
|
||||
on_enter: |
|
||||
file=/home/user/workdir/cat.txt
|
||||
echo "As you can see it is possible to execute arbitrary shell commands here." >> $file
|
||||
python3 -c \
|
||||
"
|
||||
from tfwconnector import MessageSender
|
||||
MessageSender().send('FSM', 'Entered state 2! Written stuff to $file')
|
||||
"
|
||||
printf "Entered state 2! Written stuff to $file\n\n" > /tmp/tfw_bot_send
|
||||
- name: '3'
|
||||
on_enter: |
|
||||
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 3!')"
|
||||
printf "Entered state 3!\n\n" > /tmp/tfw_bot_send
|
||||
- name: '4'
|
||||
on_enter: |
|
||||
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 4!')"
|
||||
printf "Entered state 4!\n\n" > /tmp/tfw_bot_send
|
||||
- name: '5'
|
||||
on_enter: |
|
||||
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 5!')"
|
||||
printf "Entered state 5!\n\n" > /tmp/tfw_bot_send
|
||||
transitions:
|
||||
- trigger: step_1
|
||||
source: '0'
|
||||
|
Loading…
Reference in New Issue
Block a user