Skip to content

Commit

Permalink
tests: check RebootProgram is parsable after edit
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Nucciarone <[email protected]>
  • Loading branch information
NucciTheBoss committed Nov 13, 2024
1 parent 59aa4b0 commit 84f4c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/editors/test_slurmconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_edit(self) -> None:
# Test descriptors for `slurm.conf` configuration options.
with slurmconfig.edit("/etc/slurm/slurm.conf") as config:
del config.inactive_limit
config.reboot_program = "systemctl reboot"
config.max_job_count = 20000
config.proctrack_type = "proctrack/linuxproc"
config.plugin_dir.append("/snap/slurm/current/plugins")
Expand All @@ -87,6 +88,7 @@ def test_edit(self) -> None:

config = slurmconfig.load("/etc/slurm/slurm.conf")
self.assertIsNone(config.inactive_limit)
self.assertEqual(config.reboot_program, "systemctl reboot")
self.assertEqual(config.max_job_count, "20000")
self.assertEqual(config.proctrack_type, "proctrack/linuxproc")
self.assertListEqual(
Expand Down

0 comments on commit 84f4c2d

Please sign in to comment.