skip encryption if not supported

This commit is contained in:
Edwin Eefting 2021-04-20 23:34:41 +02:00
parent 31be12c0bf
commit fc0da9d380

View File

@ -20,9 +20,15 @@ import time
class TestZfsEncryption(unittest2.TestCase):
def setUp(self):
prepare_zpools()
try:
shelltest("zfs get encryption test_source1")
except:
self.skipTest("Encryption not supported on this ZFS version.")
def prepare_encrypted_dataset(self, key, path, unload_key=False):
# create encrypted source dataset