close open filehandles. more tests
This commit is contained in:
@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user