Skip to content
Snippets Groups Projects
Commit e1b11328 authored by Moe Jette's avatar Moe Jette
Browse files

add check for SlurmUser or root, otherwise test is mostly a no-op

parent b0681aac
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,13 @@ if {$found == 1} {
#
# We only reach this point if a hidden partition must be
# created to test this feature, which only super users can do
#
#
if {[test_super_user] == 0} {
send_user "\nWARNING: can not test more unless SlurmUser or root\n"
exit $exit_code
}
#
# Confirm the partition name does not already exist
#
set found -1
......@@ -123,11 +129,6 @@ if {$found == 1} {
#
spawn $scontrol create PartitionName=$part_name Hidden=YES
expect {
-re "slurm_update error: Invalid user" {
send_user "\nWARNING: user not authorized to create partition\n"
exit $exit_code
exp_continue
}
-re "error" {
send_user "\nFAILURE: something bad happened on partitiion create\n"
set exit_code 1
......
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