close open filehandles. more tests

This commit is contained in:
Edwin Eefting
2020-05-17 16:59:46 +02:00
parent 2305fdf033
commit 138c913e58
4 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,5 @@
import subprocess
import random
@ -9,6 +11,8 @@ from pprint import *
from bin.zfs_autobackup import *
def shelltest(cmd):
"""execute and print result as nice copypastable string for unit tests (adds extra newlines on top/bottom)"""
ret=(subprocess.check_output(cmd , shell=True).decode('utf-8'))