Adjust slurm test code for runs with stg repos

This commit is contained in:
Alan Marshall 2023-10-15 15:38:43 +01:00
parent ab0b05be3d
commit a34a9253ba
Signed by: alangm
GPG Key ID: 4DF85D1B967F51A6

View File

@ -9,7 +9,7 @@ sub slurm_setup {
assert_script_run "dnf -y install rocky-release-hpc", 120;
# Set up munge
assert_script_run "dnf -y install munge", 120;
assert_script_run 'dnf -y install munge --releasever=' . get_var("CURRREL"), 120;
assert_script_run "dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key";
assert_script_run "chmod 400 /etc/munge/munge.key";
assert_script_run "chown munge.munge /etc/munge/munge.key";
@ -19,7 +19,7 @@ sub slurm_setup {
if (get_var("CURRREL") eq '8') {
assert_script_run "dnf config-manager --set-enabled powertools";
}
assert_script_run "dnf install -y slurm$version-slurmdbd slurm$version-slurmrestd slurm$version-slurmctld slurm$version-slurmd";
assert_script_run "dnf install -y slurm$version-slurmdbd slurm$version-slurmrestd slurm$version-slurmctld slurm$version-slurmd --releasever=" . get_var("CURRREL");
# Since this is a single node system, we don't have to modify the conf files. We will for larger multi-node tests.
# start services