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
2060a5e7
Commit
2060a5e7
authored
8 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
alter tests to work correctly if you aren't a super user
parent
1da2a810
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/test1.72
+4
-0
4 additions, 0 deletions
testsuite/expect/test1.72
testsuite/expect/test4.13
+5
-0
5 additions, 0 deletions
testsuite/expect/test4.13
testsuite/expect/test5.11
+6
-0
6 additions, 0 deletions
testsuite/expect/test5.11
with
15 additions
and
0 deletions
testsuite/expect/test1.72
+
4
−
0
View file @
2060a5e7
...
@@ -34,6 +34,10 @@ set test_id "1.72"
...
@@ -34,6 +34,10 @@ set test_id "1.72"
set freq_val 0
set freq_val 0
set exit_code 0
set exit_code 0
if {[test_cray]} {
set timeout 60
}
if {[get_job_acct_freq] == 0} {
if {[get_job_acct_freq] == 0} {
send_user "\nWARNING:this test requires JobAcctGatherFrequency to be set\n"
send_user "\nWARNING:this test requires JobAcctGatherFrequency to be set\n"
exit $exit_code
exit $exit_code
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test4.13
+
5
−
0
View file @
2060a5e7
...
@@ -93,6 +93,11 @@ proc cleanup { } {
...
@@ -93,6 +93,11 @@ proc cleanup { } {
}
}
if { ![test_super_user] } {
send_user "\nWARNING: This test can't be run without being a super user of the cluster.\n"
exit 0
}
send_user "\n=== Testing Node Information ===\n"
send_user "\n=== Testing Node Information ===\n"
set first_option 1
set first_option 1
foreach option [array names node_info] {
foreach option [array names node_info] {
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test5.11
+
6
−
0
View file @
2060a5e7
...
@@ -52,6 +52,12 @@ print_header $test_id
...
@@ -52,6 +52,12 @@ print_header $test_id
make_bash_script $script "
make_bash_script $script "
sleep 10
sleep 10
"
"
if { ![test_super_user] } {
send_user "\nWARNING: This test can't be run without being a super user of the cluster.\n"
exit 0
}
proc sub_job { cpu_cnt part } {
proc sub_job { cpu_cnt part } {
global sbatch script job_id number exit_code
global sbatch script job_id number exit_code
...
...
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