Re: [Avocado-devel] Subprocess termination

2017-02-17 Thread Andrei Stepanov
Hi. It seems to me, that you are talking about global task: "track of special resources" Radek's case is much simple: kill all children. I think it is correct behavior. This is as it should be. There is nothing to track. On opposite side, if test want to keep running process that it can

Re: [Avocado-devel] Subprocess termination

2017-02-17 Thread Lucas Meneghel Rodrigues
I would avoid keeping track of special resources by the test runner itself. It's the sort of thing that the test writer would be expected to implement on cleanup procedures. Implementing said track of subprocesses would be justifiable if we look at the following perspectives: 1) We want to

Re: [Avocado-devel] Subprocess termination

2017-02-17 Thread Radek Duda
Good morning folks, Andrei thanks for this line of code I've forgotten to include it. So the code reads: def run(vt_test, test_params, env): cmd = "nc -l %s" % test_params['some_port'] nc_process = process.SubProcess(cmd) nc_process_pid = nc_process.start() return Amador thanks for your