allow regression to run from pycharm by using sudo with passwd file. you also need to suid root zfs and zpool

This commit is contained in:
Edwin Eefting
2021-04-15 13:56:24 +02:00
parent db6523f3c0
commit a920744b1e
5 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,6 @@ from basetest import *
import time
class TestZfsAutobackup(unittest2.TestCase):
def setUp(self):
@ -696,8 +695,8 @@ test_target1
#test incremental
with patch('time.strftime', return_value="20101111000000"):
self.assertFalse(ZfsAutobackup("test test_target1 --no-progress --verbose --test".split(" ")).run())
with patch('time.strftime', return_value="20101111000002"):
self.assertFalse(ZfsAutobackup("test test_target1 --no-progress --allow-empty --verbose --test".split(" ")).run())
r=shelltest("zfs list -H -o name -r -t all "+TEST_POOLS)
self.assertMultiLineEqual(r,"""