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
84cd28ce
Commit
84cd28ce
authored
9 years ago
by
Alejandro Sanchez
Committed by
Danny Auble
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added missing file
parent
247a4fe2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/inc21.30.17
+88
-0
88 additions, 0 deletions
testsuite/expect/inc21.30.17
with
88 additions
and
0 deletions
testsuite/expect/inc21.30.17
0 → 100644
+
88
−
0
View file @
84cd28ce
############################################################################
# Purpose: Test of SLURM functionality
# to be called from test21.30
# Tests if the QOS/Parent QOS MaxWall limit is used as
# job's TimeLimit if the job did't request --time
############################################################################
# Copyright (C) 2013 SchedMD LLC
# Written by Alejandro Sanchez <alex@schedmd.com>
#
# This file is part of SLURM, a resource management program.
# For details, see <http://slurm.schedmd.com/>.
# Please also read the included file: DISCLAIMER.
#
# SLURM is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# SLURM is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with SLURM; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
############################################################################
# Checks the timelimit of the job
proc check_timelimit { job } {
global scontrol job_id exit_code maxwall_num
set timelimit_match 0
spawn $scontrol show job $job
expect {
-re "TimeLimit=00:0$maxwall_num:00" {
incr timelimit_match
}
timeout {
send_user "\nFAILURE scontrol not responding\n"
set exit_code 1
}
eof {
wait
}
}
if {$timelimit_match != 1} {
send_user "\nFAILURE job should have as TimeLimit the QOS MaxWall\n"
set exit_code 1
}
}
proc inc21_30_17 { } {
global salloc srun acct bin_sleep number maxwall_num exit_code
send_user "\nStarting Qos/Parent MaxWall applied to job without -t test (Within: inc21.31.17)\n"
set job_id 0
spawn $salloc --account=$acct -N1 $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id $expect_out(1,string)
send_user "\nJob $job_id has been submitted\n"
check_timelimit $job_id
}
-re "Pending job allocation ($number)" {
set job_id $expect_out(1,string)
send_user "\nFAILURE: job $job_id should not be waiting for resources (Within: inc21.30.17)\n"
set exit_code 1
}
-re "error" {
send_user "\nFAILURE: Job allocation should not have failed. (Within: inc21.30.17)\n"
set exit_code 1
}
timeout {
send_user "\nFAILURE: salloc is not responding (Within: inc21.30.17)\n"
set exit_code 1
}
eof {
wait
}
}
# Cancel job
cancel_job $job_id
}
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