mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-17 22:52:20 +03:00
show test output
This commit is contained in:
parent
51d6731aa8
commit
ddd82b935b
@ -72,10 +72,12 @@ class TestZfsEncryption(unittest2.TestCase):
|
||||
def runchecked(testname, command):
|
||||
with self.subTest(testname):
|
||||
with OutputIO() as buf:
|
||||
result=None
|
||||
with redirect_stderr(buf):
|
||||
self.assertEqual(2, ZfsAutoverify(command.split(" ")).run())
|
||||
result=ZfsAutoverify(command.split(" ")).run()
|
||||
|
||||
print(buf.getvalue())
|
||||
self.assertEqual(2,result)
|
||||
self.assertRegex(buf.getvalue(), "bad_filesystem: FAILED:")
|
||||
self.assertRegex(buf.getvalue(), "bad_zvol: FAILED:")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user