Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
587c74e7
Commit
587c74e7
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
modify sbcast tests for SlurmdUser != root
parent
65b2f7c8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/expect/globals
+27
-0
27 additions, 0 deletions
testsuite/expect/globals
testsuite/expect/test14.5
+4
-0
4 additions, 0 deletions
testsuite/expect/test14.5
testsuite/expect/test14.7
+7
-0
7 additions, 0 deletions
testsuite/expect/test14.7
with
38 additions
and
0 deletions
testsuite/expect/globals
+
27
−
0
View file @
587c74e7
...
@@ -637,6 +637,33 @@ proc test_assoc_enforced { } {
...
@@ -637,6 +637,33 @@ proc test_assoc_enforced { } {
return $assoc_enforced
return $assoc_enforced
}
}
################################################################
#
# Proc: slurmd_user_root
#
# Return 1 if the SlurmdUser is root, 0 otherwise
#
################################################################
proc slurmd_user_root { } {
global scontrol
log_user 0
set rc 0
spawn $scontrol show config
expect {
-re "SlurmdUser *= root" {
set rc 1
exp_continue
}
eof {
wait
}
}
log_user 1
return $rc
}
################################################################
################################################################
#
#
# Proc: test_topology
# Proc: test_topology
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test14.5
+
4
−
0
View file @
587c74e7
...
@@ -46,6 +46,10 @@ if {[test_front_end] != 0} {
...
@@ -46,6 +46,10 @@ if {[test_front_end] != 0} {
send_user "\nWARNING: This test is incompatable with front-end systems\n"
send_user "\nWARNING: This test is incompatable with front-end systems\n"
exit 0
exit 0
}
}
if {[slurmd_user_root] == 0} {
send_user "\nWARNING: This test is incompatable with SlurmdUser != root\n"
exit 0
}
# Delete left-over stdout/err files
# Delete left-over stdout/err files
file delete $file_out $file_err
file delete $file_out $file_err
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test14.7
+
7
−
0
View file @
587c74e7
...
@@ -116,6 +116,13 @@ if {[wait_for_file $file_err] == 0} {
...
@@ -116,6 +116,13 @@ if {[wait_for_file $file_err] == 0} {
incr matches
incr matches
exp_continue
exp_continue
}
}
-re "REQUEST_FILE_BCAST.* Operation not permitted" {
# variation on Permission denied if initgroups() fails
# due to not running slurmd as root
send_user "These errors are expected, no worries\n"
incr matches
exp_continue
}
-re "REQUEST_FILE_BCAST.* File exists" {
-re "REQUEST_FILE_BCAST.* File exists" {
send_user "Vestigial file should be removed\n"
send_user "Vestigial file should be removed\n"
incr matches
incr matches
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment