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
ed2f0330
Commit
ed2f0330
authored
4 years ago
by
Scott Jackson
Committed by
Albert Gil
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Testsuite - Improve test31.1 allowing parallel runs using pid
Bug 7069
parent
fef97fd9
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/test31.1
+11
-8
11 additions, 8 deletions
testsuite/expect/test31.1
with
11 additions
and
8 deletions
testsuite/expect/test31.1
+
11
−
8
View file @
ed2f0330
...
...
@@ -34,6 +34,9 @@ set make_file 0
set exit_code 0
set pcmd_prog "/opt/cray/nodehealth/default/bin/pcmd"
# Use PID to avoid issues with ps aux killall
set test_pid [pid]
if {[get_config_param "SwitchType"] eq "switch/cray"} {
set make_file 1
if { ![file exists $pcmd_prog] } {
...
...
@@ -105,7 +108,7 @@ proc change_pro_epi { arg program_name conf_change task_pro } {
}
proc check_file { file_name } {
global
test_name
exit_code file_dir run_host pcmd_prog
global exit_code file_dir run_host pcmd_prog
sleep 1
...
...
@@ -236,7 +239,7 @@ if {$get_name != 1} {
#
# Test srun --task-epilog
#
change_pro_epi srun-task-epilog srun--task-epilog_$test_name 1 0
change_pro_epi srun-task-epilog srun--task-epilog_$
{
test_name
}_${test_pid}
1 0
reconfigure -fail
...
...
@@ -266,10 +269,10 @@ if {$make_file == 1} {
# Check to see if the child process still exist
check_proc srun--task-epilog_$test_name
check_proc srun--task-epilog_$
{
test_name
}_${test_pid}
# Remove link
exec $bin_rm -rf $test_dir/srun--task-epilog_$test_name
exec $bin_rm -rf $test_dir/srun--task-epilog_$
{
test_name
}_${test_pid}
#
# Task Prolog Test
...
...
@@ -328,7 +331,7 @@ if {$make_file == 1} {
#
# Test TaskProlog
#
run_job taskprolog taskprolog_$test_name 0 1
run_job taskprolog taskprolog_$
{
test_name
}_${test_pid}
0 1
} else {
# Add a line in the slurm.conf file to include the epilogs and prologs
...
...
@@ -340,19 +343,19 @@ if {$make_file == 1} {
#
# Test Epilog param
#
run_job epilog epilog_$test_name 0 0
run_job epilog epilog_$
{
test_name
}_${test_pid}
0 0
#
# Test TaskEpilog param
#
run_job taskepilog taskepilog_$test_name 0 0
run_job taskepilog taskepilog_$
{
test_name
}_${test_pid}
0 0
###############Prolog Test###############
#
# Test Prolog param
#
run_job prolog prolog_$test_name 0 0
run_job prolog prolog_$
{
test_name
}_${test_pid}
0 0
if {$exit_code} {
fail "Test failed due to previous errors (\$exit_code = $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