diff --git a/nixos/tests/slurm.nix b/nixos/tests/slurm.nix index b4458d8d095..720c36d472e 100644 --- a/nixos/tests/slurm.nix +++ b/nixos/tests/slurm.nix @@ -108,6 +108,8 @@ in { # cluster in the database before slurmctld is restarted subtest "add_account", sub { $control->succeed("sacctmgr -i add cluster default"); + # check for cluster entry + $control->succeed("sacctmgr list cluster | awk '{ print \$1 }' | grep default"); }; subtest "can_start_slurmctld", sub { @@ -133,6 +135,7 @@ in { subtest "check_slurm_dbd", sub { # find the srun job from above in the database + sleep 2; $submit->succeed("sacct | grep hostname"); }; '';