mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-14 21:37:17 +00:00
Add snapshot event handler
This commit is contained in:
parent
3bda7bc540
commit
e7d78ed289
@ -10,7 +10,7 @@ from tfw.event_handler_base import EventHandlerBase, FSMAwareEventHandler
|
||||
from tfw.components import IdeEventHandler, TerminalEventHandler
|
||||
from tfw.components import ProcessManagingEventHandler, BashMonitor
|
||||
from tfw.components import TerminalCommands, LogMonitoringEventHandler
|
||||
from tfw.components import FSMManagingEventHandler
|
||||
from tfw.components import FSMManagingEventHandler, DirectorySnapshottingEventHandler
|
||||
from tfw.networking import MessageSender, TFWServerConnector
|
||||
from tfw.config import TFWENV
|
||||
from tfw.config.logs import logging
|
||||
@ -133,6 +133,13 @@ def main():
|
||||
process_name='webservice',
|
||||
log_tail=2000
|
||||
)
|
||||
snapshot = DirectorySnapshottingEventHandler( # Manages filesystem snapshots of directories
|
||||
key='snapshot',
|
||||
directories=[
|
||||
TFWENV.IDE_WD,
|
||||
TFWENV.WEBSERVICE_DIR
|
||||
]
|
||||
)
|
||||
|
||||
# Your custom event handlers
|
||||
message_fsm_steps_eh = MessageFSMStepsEventHandler(
|
||||
|
Loading…
Reference in New Issue
Block a user