Add 'os_dependent' marker to tests
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
@@ -18,6 +18,7 @@ from test_utils.os_utils import drop_caches, DropCachesMode, sync, Udev
|
||||
from .io_class_common import *
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -109,6 +110,7 @@ def test_ioclass_directory_depth(filesystem):
|
||||
f"Expected: {base_occupancy + test_file_2.size}, actual: {new_occupancy}"
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -281,6 +283,7 @@ def test_ioclass_directory_dir_operations(filesystem):
|
||||
directory=dir_1, with_delay=True)
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
|
||||
@@ -303,6 +303,7 @@ def test_ioclass_file_offset():
|
||||
TestRun.LOGGER.error(f"Inappropriately cached offset: {file_offset}")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
|
||||
@@ -159,6 +159,7 @@ def test_ioclass_request_size():
|
||||
TestRun.fail("Dirty data present!")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", list(Filesystem) + [False])
|
||||
@@ -244,6 +245,7 @@ def test_ioclass_direct(filesystem):
|
||||
f"Expected: {base_occupancy + io_size}, actual: {new_occupancy}")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -334,6 +336,7 @@ def test_ioclass_metadata(filesystem):
|
||||
TestRun.fail("No requests to metadata while deleting directory with files!")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -473,6 +476,7 @@ def test_ioclass_id_as_condition(filesystem):
|
||||
f"Expected: {base_occupancy + ioclass_file_size}, actual: {new_occupancy}")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -521,6 +525,7 @@ def test_ioclass_conditions_or(filesystem):
|
||||
f"Expected: {base_occupancy + file_size}, actual: {new_occupancy}")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
@@ -570,6 +575,7 @@ def test_ioclass_conditions_and(filesystem):
|
||||
f"Expected: {base_occupancy}, actual: {new_occupancy}")
|
||||
|
||||
|
||||
@pytest.mark.os_dependent
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.parametrizex("filesystem", Filesystem)
|
||||
|
||||
Reference in New Issue
Block a user