Skip to content
Snippets Groups Projects
Commit 9ca0eeb7 authored by Morris Jette's avatar Morris Jette
Browse files

Make test more robust

Disable srun --bcast option test if SlurmdUser != root as the
  operation/test  will not work otherwise.
parent e1b6815c
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env expect #!/usr/bin/env expect
############################################################################ ############################################################################
# Purpose: Test of SLURM functionality # Purpose: Test of SLURM functionality
# est of --bcast option. # Test of --bcast option.
# #
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR # Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
# "WARNING: ..." with an explanation of why the test can't be made, OR # "WARNING: ..." with an explanation of why the test can't be made, OR
...@@ -53,6 +53,11 @@ if {[test_alps]} { ...@@ -53,6 +53,11 @@ if {[test_alps]} {
exit 0 exit 0
} }
if {[slurmd_user_root] == 0} {
send_user "\nWARNING: This test is incompatible with SlurmdUser != root\n"
exit 0
}
make_bash_script $file_in "echo \$0" make_bash_script $file_in "echo \$0"
set salloc_pid [spawn $salloc -N1-5 -t1 bash] set salloc_pid [spawn $salloc -N1-5 -t1 bash]
expect { expect {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment