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
31f19d89
Commit
31f19d89
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Tweak the test to insure tasks all started before joining.
parent
67935770
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/test1.18
+7
-5
7 additions, 5 deletions
testsuite/expect/test1.18
with
7 additions
and
5 deletions
testsuite/expect/test1.18
+
7
−
5
View file @
31f19d89
...
...
@@ -6,11 +6,8 @@
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
# "FAILURE: ..." otherwise with an explanation of the failure, OR
# anything else indicates a failure mode that must be investigated.
#
# Note: This script generates and then deletes files in the working directory
# named test1.18.prog
############################################################################
# Copyright (C) 2002 The Regents of the University of California.
# Copyright (C) 2002
-2006
The Regents of the University of California.
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
# Written by Morris Jette <jette1@llnl.gov>
# UCRL-CODE-217948.
...
...
@@ -39,6 +36,7 @@ set exit_code 0
set file_prog "test$test_id.prog"
set job_id 0
set matches 0
set tasks 8
print_header $test_id
...
...
@@ -53,7 +51,7 @@ exec $bin_chmod 700 $file_prog
# Spawn initial program via srun
#
set timeout $max_job_delay
set srun_pid [spawn $srun -N1-
4
-v -t5 -l $file_prog]
set srun_pid [spawn $srun -N1-
$tasks -n$tasks -O
-v -t5 -l $file_prog]
set init_id $spawn_id
expect {
-i $init_id
...
...
@@ -63,6 +61,9 @@ expect {
}
-re "WAITING" {
incr matches
if {$matches < $tasks} {
exp_continue
}
}
timeout {
send_user "\nFAILURE: srun (launch) not responding\n"
...
...
@@ -93,6 +94,7 @@ expect {
-i $attach_id
-re "WAITING" {
incr matches
send_user "\nsending exit message\n"
send -i $attach_id "exit\n"
}
timeout {
...
...
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