mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-08-03 17:45:19 +00:00
Add .bashrc path to TestCommands instance
This commit is contained in:
@@ -5,6 +5,7 @@ from tfw.components import TerminalCommands
|
|||||||
from tfw.networking import MessageSender, TFWServerConnector
|
from tfw.networking import MessageSender, TFWServerConnector
|
||||||
from tfw.config import TFWENV
|
from tfw.config import TFWENV
|
||||||
from tfw.config.logs import logging
|
from tfw.config.logs import logging
|
||||||
|
from tao.config import TAOENV
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -39,7 +40,7 @@ if __name__ == '__main__':
|
|||||||
directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
|
directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
|
||||||
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
|
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
|
||||||
terminado.historymonitor.subscribe_callback(cenator)
|
terminado.historymonitor.subscribe_callback(cenator)
|
||||||
commands = TestCommands()
|
commands = TestCommands(bashrc=f'/home/{TAOENV.USER}/.bashrc')
|
||||||
terminado.historymonitor.subscribe_callback(commands.callback)
|
terminado.historymonitor.subscribe_callback(commands.callback)
|
||||||
processmanager = ProcessManagingEventHandler(key='processmanager', dirmonitor=ide.monitor)
|
processmanager = ProcessManagingEventHandler(key='processmanager', dirmonitor=ide.monitor)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user