Merge pull request #1282 from pdebski21/mark_standby_injection_tests

Add CI marks to standby fault injection tests
This commit is contained in:
Robert Baldyga
2022-08-06 13:45:43 +02:00
committed by GitHub

View File

@@ -27,6 +27,7 @@ block_size = Size(1, Unit.Blocks512)
offset = 1 # offset is expressed in the number of blocks offset = 1 # offset is expressed in the number of blocks
@pytest.mark.CI
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane])) @pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache")) @pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
def test_activate_corrupted(): def test_activate_corrupted():
@@ -83,6 +84,7 @@ def test_activate_corrupted():
md_dump.remove() md_dump.remove()
@pytest.mark.CI
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane])) @pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache")) @pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
def test_load_corrupted(): def test_load_corrupted():
@@ -127,6 +129,7 @@ def test_load_corrupted():
md_dump.remove() md_dump.remove()
@pytest.mark.CI
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane])) @pytest.mark.require_disk("cache", DiskTypeSet([DiskType.nand, DiskType.optane]))
@pytest.mark.require_disk("core", DiskTypeLowerThan("cache")) @pytest.mark.require_disk("core", DiskTypeLowerThan("cache"))
def test_activate_corrupted_after_dump(): def test_activate_corrupted_after_dump():