misc. functions
This module consists of miscellaneous functions of pyGATs. These functions might be removed from library in the future.
- pygats.misc.setup_test_env(ctx, cmd, out_log, err_log)[source]
Setup test environment (run cmd) before execute test cases
- Parameters:
ctx (Context) – An object that contains information about the current context.
cmd (string) – command line to start test process
out_log (string) – path to log file where stdout of the test process will be stored
err_log (string) – path to log file where stderr of the test process will be stored
- Returns:
- returns Popen object which
stores executed test process
- Return type:
testProc (subprocess.Popen)