Testsuite - Fix tests 123_5 and 123_6 for older versions
Issue: 50466
Ticket: 23173
diff --git a/testsuite/python/tests/test_123_5.py b/testsuite/python/tests/test_123_5.py
index 7f85081..9b20de8 100644
--- a/testsuite/python/tests/test_123_5.py
+++ b/testsuite/python/tests/test_123_5.py
@@ -16,7 +16,12 @@
def setup():
global local_cluster_name
- atf.require_accounting()
+ atf.require_version(
+ (25, 11),
+ "bin/scontrol",
+ reason="Creating reservations with qos= added in scontrol 25.11",
+ )
+ atf.require_accounting(True)
atf.require_slurm_running()
atf.require_config_parameter_includes("AccountingStorageEnforce", "qos")
local_cluster_name = atf.get_config_parameter("ClusterName")
diff --git a/testsuite/python/tests/test_123_6.py b/testsuite/python/tests/test_123_6.py
index b0f126e..1f940c8 100644
--- a/testsuite/python/tests/test_123_6.py
+++ b/testsuite/python/tests/test_123_6.py
@@ -16,6 +16,12 @@
def setup():
global local_cluster_name
+ atf.require_version(
+ (25, 11),
+ "bin/scontrol",
+ reason="Creating reservations with allowedpartition= added in scontrol 25.11",
+ )
+ atf.require_accounting(True)
atf.require_slurm_running()
local_cluster_name = atf.get_config_parameter("ClusterName")