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
d17a8e22
Commit
d17a8e22
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
fix for qos tests
parent
dd5c9249
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/globals_accounting
+16
-4
16 additions, 4 deletions
testsuite/expect/globals_accounting
testsuite/expect/test21.20
+3
-3
3 additions, 3 deletions
testsuite/expect/test21.20
with
19 additions
and
7 deletions
testsuite/expect/globals_accounting
+
16
−
4
View file @
d17a8e22
...
@@ -339,7 +339,10 @@ proc add_acct { cluster parent name desc org qos fairshare grpcpumin grpcpu grpj
...
@@ -339,7 +339,10 @@ proc add_acct { cluster parent name desc org qos fairshare grpcpumin grpcpu grpj
}
}
if { [string length $qos] } {
if { [string length $qos] } {
set command "$command qoslevel=$qos"
if { [string compare $qos " "] } {
set $qos ""
}
set command "$command qoslevel='$qos'"
set assoc_stuff 1
set assoc_stuff 1
}
}
...
@@ -586,7 +589,10 @@ proc mod_acct { cluster wparent name wdesc worg qos fairshare grpcpumin grpcpu g
...
@@ -586,7 +589,10 @@ proc mod_acct { cluster wparent name wdesc worg qos fairshare grpcpumin grpcpu g
}
}
if { [string length $qos] } {
if { [string length $qos] } {
set scommand "$scommand qoslevel$qos"
if { [string compare $qos " "] } {
set $qos ""
}
set scommand "$scommand qoslevel='$qos'"
set assoc_stuff 1
set assoc_stuff 1
}
}
...
@@ -748,7 +754,10 @@ proc add_user { cluster account name part admin dacct dwckey wckey qos fairshare
...
@@ -748,7 +754,10 @@ proc add_user { cluster account name part admin dacct dwckey wckey qos fairshare
}
}
if { [string length $qos] } {
if { [string length $qos] } {
set command "$command qoslevel=$qos"
if { [string compare $qos " "] } {
set $qos ""
}
set command "$command qoslevel='$qos'"
}
}
if { [string length $wckey] } {
if { [string length $wckey] } {
...
@@ -1017,7 +1026,10 @@ proc mod_user { cluster account name part wadmin wdacct wdwckey qos fairshare gr
...
@@ -1017,7 +1026,10 @@ proc mod_user { cluster account name part wadmin wdacct wdwckey qos fairshare gr
}
}
if { [string length $qos] } {
if { [string length $qos] } {
set scommand "$scommand qoslevel$qos"
if { [string compare $qos " "] } {
set $qos ""
}
set scommand "$scommand qoslevel='$qos'"
set assoc_stuff 1
set assoc_stuff 1
}
}
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test21.20
+
3
−
3
View file @
d17a8e22
...
@@ -198,7 +198,7 @@ if {$matches != 27} {
...
@@ -198,7 +198,7 @@ if {$matches != 27} {
# cluster account name part wadmin wdacct wdwckey qos fairshare grpcpumin grpcpu grpjob grpnode grpsubmit grpwall maxcpumin maxcpu maxjob maxnode maxsubmit maxwall admin dacct dwckey
# cluster account name part wadmin wdacct wdwckey qos fairshare grpcpumin grpcpu grpjob grpnode grpsubmit grpwall maxcpumin maxcpu maxjob maxnode maxsubmit maxwall admin dacct dwckey
#
#
incr exit_code [mod_user "$tc1,$tc2,$tc3" "$nm2" $us1 "" "" "" "" "
=
$qs3" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""]
incr exit_code [mod_user "$tc1,$tc2,$tc3" "$nm2" $us1 "" "" "" "" "$qs3" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""]
if { $exit_code } {
if { $exit_code } {
remove_user "" "" "$us1,$us2,$us3"
remove_user "" "" "$us1,$us2,$us3"
remove_acct "" "$nm1,$nm2,$nm3"
remove_acct "" "$nm1,$nm2,$nm3"
...
@@ -244,7 +244,7 @@ if {$matches != 21} {
...
@@ -244,7 +244,7 @@ if {$matches != 21} {
# account adminlevel cluster defaultaccount qoslevel name
# account adminlevel cluster defaultaccount qoslevel name
# qoslevel waccounts wcluster wnames
# qoslevel waccounts wcluster wnames
#
#
incr exit_code [mod_user "$tc1,$tc2,$tc3" "$nm2" $us2 "" "" "" "" "+
=
$qs3" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""]
incr exit_code [mod_user "$tc1,$tc2,$tc3" "$nm2" $us2 "" "" "" "" "+$qs3" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""]
if { $exit_code } {
if { $exit_code } {
remove_user "" "" "$us1,$us2,$us3"
remove_user "" "" "$us1,$us2,$us3"
remove_acct "" "$nm1,$nm2,$nm3"
remove_acct "" "$nm1,$nm2,$nm3"
...
@@ -295,7 +295,7 @@ if {$matches != 15} {
...
@@ -295,7 +295,7 @@ if {$matches != 15} {
# account adminlevel cluster defaultaccount qoslevel name
# account adminlevel cluster defaultaccount qoslevel name
# qoslevel waccounts wcluster wnames
# qoslevel waccounts wcluster wnames
#
#
incr exit_code [mod_user "$tc1,$tc2,$tc3" "$nm2" $us3 "" "" "" "" "-
=
$qs2" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""]
incr exit_code [mod_user "$tc1,$tc2,$tc3" "$nm2" $us3 "" "" "" "" "-$qs2" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""]
if { $exit_code } {
if { $exit_code } {
remove_user "" "" "$us1,$us2,$us3"
remove_user "" "" "$us1,$us2,$us3"
remove_acct "" "$nm1,$nm2,$nm3"
remove_acct "" "$nm1,$nm2,$nm3"
...
...
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