From 62ea707e31329b0b38fe9f89a8910d07603df655 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sat, 9 Mar 2019 22:31:40 +0100 Subject: [PATCH] nixos/tests: make slurm test more reliable --- nixos/tests/slurm.nix | 3 +++ 1 file changed, 3 insertions(+) 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"); }; '';