[CRIU] [PATCH] zdtm.py: tests should not inherite file descriptors from zdtm.py

Dmitry Safonov dsafonov at odin.com
Thu Dec 17 02:40:55 PST 2015


On 12/17/2015 01:38 PM, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
>
> Cc: Dmitry Safonov <dsafonov at odin.com>
> Reported-by: Dmitry Safonov <dsafonov at odin.com>
> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
Tested-by: Dmitry Safonov <dsafonov at odin.com>

> ---
>   test/zdtm.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/zdtm.py b/test/zdtm.py
> index c2d3ebc..728efa3 100755
> --- a/test/zdtm.py
> +++ b/test/zdtm.py
> @@ -296,7 +296,7 @@ class zdtm_test:
>   		if env:
>   			env = dict(os.environ, **env)
>   
> -		s = subprocess.Popen(s_args, env = env, cwd = root)
> +		s = subprocess.Popen(s_args, env = env, cwd = root, close_fds = True)
>   		s.wait()
>   
>   	def __pidfile(self):


-- 
Regards,
Dmitry Safonov



More information about the CRIU mailing list