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
7ab563a7
Commit
7ab563a7
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Modify test to work in both RedHat and Ubuntu
parent
54f9f603
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.89
+8
-2
8 additions, 2 deletions
testsuite/expect/test1.89
testsuite/expect/test1.90
+19
-1
19 additions, 1 deletion
testsuite/expect/test1.90
testsuite/expect/test1.91
+9
-1
9 additions, 1 deletion
testsuite/expect/test1.91
with
36 additions
and
4 deletions
testsuite/expect/test1.89
+
8
−
2
View file @
7ab563a7
...
...
@@ -90,10 +90,16 @@ exec $bin_chmod 700 $file_prog
#
# Create an allocation
#
global env
set env(PS1) $prompt
set salloc_pid [spawn $salloc -N1 --exclusive --verbose -t2 $bin_bash]
expect {
-re "Granted job allocation ($number)" {
set job_id $expect_out(1,string)
send "export PS1=\"$prompt\"\r"
exp_continue
}
-re "export PS1=\"$prompt\"" {
exp_continue
}
timeout {
send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n"
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test1.90
+
19
−
1
View file @
7ab563a7
...
...
@@ -36,6 +36,7 @@ source ./globals
set test_id "1.90"
set exit_code 0
set file_prog "test$test_id.prog"
set prompt "PROMPT:"
print_header $test_id
...
...
@@ -109,11 +110,28 @@ exec $bin_chmod 700 $file_prog
# Create an allocation
#
set salloc_pid [spawn $salloc -N1 --exclusive --verbose -t2 $bin_bash]
expect {
-re "Granted job allocation ($number)" {
set job_id $expect_out(1,string)
send "export PS1=\"$prompt\"\r"
exp_continue
}
-re "export PS1=\"$prompt\"" {
exp_continue
}
timeout {
send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n"
slow_kill $salloc_pid
exit 1
}
-re $prompt {
}
}
#
# Run a job step to get allocated processor count and affinity
#
expect -re $prompt
set full_mask -1
set timeout $max_job_delay
send "$srun -c1 $file_prog\r"
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test1.91
+
9
−
1
View file @
7ab563a7
...
...
@@ -145,10 +145,17 @@ exec $bin_chmod 700 $file_prog
# Create an allocation
#
global env
set env(PS1) $prompt
set env(SLURM_CPU_BIND) "verbose"
set salloc_pid [spawn $salloc -w $node_name -N1 --exclusive --verbose -t2 $bin_bash]
expect {
-re "Granted job allocation ($number)" {
set job_id $expect_out(1,string)
send "export PS1=\"$prompt\"\r"
exp_continue
}
-re "export PS1=\"$prompt\"" {
exp_continue
}
timeout {
send_user "\nFAILURE: salloc not responding "
send_user "or failure to recognize prompt\n"
...
...
@@ -158,6 +165,7 @@ expect {
-re $prompt {
}
}
#############################################################################
#
# Run a job step to get allocated processor count and affinity
...
...
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