diff --git a/tests/generic_config_updater/test_incremental_qos.py b/tests/generic_config_updater/test_incremental_qos.py index 5ec715a2956..ec358af3472 100644 --- a/tests/generic_config_updater/test_incremental_qos.py +++ b/tests/generic_config_updater/test_incremental_qos.py @@ -269,6 +269,14 @@ def test_buffer_profile_create_remove_rollback(duthost, ensure_dut_readiness, cl 3. Remove new profile using jsonpatch, check operation success 4. Rollback checkpoint """ + os_version = duthost.os_version + if "master" not in os_version and "internal" not in os_version: + is_chassis = duthost.get_facts().get("modular_chassis") + min_version = "202405" if is_chassis else "202605" + if os_version.split('.')[0][:6] < min_version: + pytest.skip("Test requires SONiC version >= {} (chassis: {}), current version: {}" + .format(min_version, bool(is_chassis), os_version)) + tmpfile = generate_tmpfile(duthost) profile_name = "pg_lossless_99999_99m_profile" profile_data = {