def close_fs(t):
import test_fs
(p, args) = t
args = test_fs.argument_parser().parse_args(args)
try:
subprocess.call(['umount', args.mountpoint], stderr=subprocess.DEVNULL)
except:
pass
try:
rc = p.wait(timeout=3)
except subprocess.TimeoutExpired:
p.terminate()
try:
rc = p.wait(timeout=3)
except subprocess.TimeoutExpired:
p.kill()
p.wait()
评论列表
文章目录