some features just arent supported on zfs utils 0.6.x

This commit is contained in:
Edwin Eefting 2020-06-15 22:14:40 +02:00
parent 1e8b02db28
commit 6151096dc8
2 changed files with 14 additions and 0 deletions

1
test_externalfailures.py Normal file
View File

@ -0,0 +1 @@
# ignore-transfer error

View File

@ -328,6 +328,11 @@ test_target1/fs2/sub@test-20101111000000
def test_clearrefres(self):
#on zfs utils 0.6.x this isnt supported, skip for now:
r=shelltest("zfs recv -x bla test; echo $?")
if r=="\n2\n":
pass
r=shelltest("zfs set refreservation=1M test_source1/fs1")
with patch('time.strftime', return_value="20101111000000"):
@ -362,6 +367,12 @@ test_target1/test_source2/fs2/sub@test-20101111000000 refreservation -
def test_clearmount(self):
#on zfs utils 0.6.x this isnt supported, skip for now:
r=shelltest("zfs recv -o bla=1 test; echo $?")
if r=="\n2\n":
pass
with patch('time.strftime', return_value="20101111000000"):
self.assertFalse(ZfsAutobackup("test test_target1 --verbose --clear-mountpoint".split(" ")).run())
@ -394,6 +405,7 @@ test_target1/test_source2/fs2/sub@test-20101111000000 canmount - -
def test_rollback(self):
#initial backup
with patch('time.strftime', return_value="20101111000000"):
self.assertFalse(ZfsAutobackup("test test_target1 --verbose".split(" ")).run())
@ -410,3 +422,4 @@ test_target1/test_source2/fs2/sub@test-20101111000000 canmount - -
self.assertFalse(ZfsAutobackup("test test_target1 --verbose --allow-empty --rollback".split(" ")).run())