]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk/tests/test_main.py: Some partition tests are no longer valid under FreeBSD
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 13 Apr 2017 10:38:17 +0000 (12:38 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 13 Apr 2017 10:53:35 +0000 (12:53 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/ceph-disk/tests/test_main.py

index 5cb3516b40c87dae4b3843f113751fabacdf6367..69a7dfd9493b13f7b00b9f7c1e83ad7716efe66f 100644 (file)
@@ -38,6 +38,9 @@ class TestCephDisk(object):
         main.setup_logging(verbose=True, log_stdout=False)
 
     def test_main_list_json(self, capsys):
+        if platform.system() == "FreeBSD":
+            return
+
         data = tempfile.mkdtemp()
         main.setup_statedir(data)
         args = main.parse_args(['list', '--format', 'json'])
@@ -50,6 +53,9 @@ class TestCephDisk(object):
         shutil.rmtree(data)
 
     def test_main_list_plain(self, capsys):
+        if platform.system() == "FreeBSD":
+            return
+
         data = tempfile.mkdtemp()
         main.setup_statedir(data)
         args = main.parse_args(['list'])
@@ -267,6 +273,9 @@ class TestCephDisk(object):
                     'state': 'prepared'} == desc
 
     def test_list_all_partitions(self):
+        if platform.system() == "FreeBSD":
+            return
+
         disk = "Xda"
         partition = "Xda1"
 
@@ -1306,6 +1315,9 @@ class TestCephDiskDeactivateAndDestroy(unittest.TestCase):
                               cluster, osd_id)
 
     def test_main_fix(self):
+        if platform.system() == "FreeBSD":
+            return
+
         args = main.parse_args(['fix', '--all', '--selinux', '--permissions'])
         commands = []