about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@gmail.com>2019-03-09 22:31:40 +0100
committerMarkus Kowalewski <markus.kowalewski@gmail.com>2019-03-09 22:31:40 +0100
commit62ea707e31329b0b38fe9f89a8910d07603df655 (patch)
tree997fdda6dff6db68e448db9e8ec461c59fb356d5 /nixos
parenta2331a2b64adb97cf64ef9def0bbba02f380dc58 (diff)
downloadnixlib-62ea707e31329b0b38fe9f89a8910d07603df655.tar
nixlib-62ea707e31329b0b38fe9f89a8910d07603df655.tar.gz
nixlib-62ea707e31329b0b38fe9f89a8910d07603df655.tar.bz2
nixlib-62ea707e31329b0b38fe9f89a8910d07603df655.tar.lz
nixlib-62ea707e31329b0b38fe9f89a8910d07603df655.tar.xz
nixlib-62ea707e31329b0b38fe9f89a8910d07603df655.tar.zst
nixlib-62ea707e31329b0b38fe9f89a8910d07603df655.zip
nixos/tests: make slurm test more reliable
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/slurm.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/slurm.nix b/nixos/tests/slurm.nix
index b4458d8d0954..720c36d472e1 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");
   };
   '';