mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-17 22:52:20 +03:00
some features just arent supported on zfs utils 0.6.x
This commit is contained in:
parent
1e8b02db28
commit
6151096dc8
1
test_externalfailures.py
Normal file
1
test_externalfailures.py
Normal file
@ -0,0 +1 @@
|
||||
# ignore-transfer error
|
@ -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())
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user