nixos/tests: make slurm test more reliable

This commit is contained in:
Markus Kowalewski 2019-03-09 22:31:40 +01:00
parent a2331a2b64
commit 62ea707e31
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB

View File

@ -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");
};
'';