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
4147c9ad
Commit
4147c9ad
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
tweak a couple of tests for problems experienced in new version
of expect on ubuntu 7.10
parent
6f8b472d
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/test1.17
+3
-10
3 additions, 10 deletions
testsuite/expect/test1.17
testsuite/expect/test17.33
+4
-11
4 additions, 11 deletions
testsuite/expect/test17.33
with
7 additions
and
21 deletions
testsuite/expect/test1.17
+
3
−
10
View file @
4147c9ad
...
@@ -37,7 +37,6 @@ set file_out "test$test_id.output"
...
@@ -37,7 +37,6 @@ set file_out "test$test_id.output"
set file_err "test$test_id.error"
set file_err "test$test_id.error"
set exit_code 0
set exit_code 0
set login_grp_info ""
set login_grp_info ""
set job_grp_info ""
set got_job_grps 0
set got_job_grps 0
set got_login_grps 0
set got_login_grps 0
set got_sleep_err 0
set got_sleep_err 0
...
@@ -61,7 +60,7 @@ exec echo "$bin_echo INITIAL_VALUE" >$file_out
...
@@ -61,7 +60,7 @@ exec echo "$bin_echo INITIAL_VALUE" >$file_out
#
#
spawn $bin_id
spawn $bin_id
expect {
expect {
-re "(uid=
.*\n
)" {
-re "(uid=
$number
)" {
set login_grp_info $expect_out(1,string)
set login_grp_info $expect_out(1,string)
set got_login_grps 1
set got_login_grps 1
exp_continue
exp_continue
...
@@ -99,8 +98,7 @@ if {[wait_for_file $file_out] == 0} {
...
@@ -99,8 +98,7 @@ if {[wait_for_file $file_out] == 0} {
send_user "\nFAILURE: stdout file not truncated\n"
send_user "\nFAILURE: stdout file not truncated\n"
set exit_code 1
set exit_code 1
}
}
-re "(uid=.*\n)" {
-re "$login_grp_info" {
set job_grp_info $expect_out(1,string)
incr got_job_grps
incr got_job_grps
exp_continue
exp_continue
}
}
...
@@ -118,10 +116,6 @@ if {$got_job_grps != 1} {
...
@@ -118,10 +116,6 @@ if {$got_job_grps != 1} {
send_user "\nFAILURE: User and group ID info missing from stdout\n"
send_user "\nFAILURE: User and group ID info missing from stdout\n"
set exit_code 1
set exit_code 1
}
}
if {[string compare $login_grp_info $job_grp_info] != 0} {
send_user "\nFAILURE: Login and slurm user info mismatch\n"
set exit_code 1
}
#
#
# Check for sleep input specification error in stderr
# Check for sleep input specification error in stderr
...
@@ -182,8 +176,7 @@ set got_job_grps 0
...
@@ -182,8 +176,7 @@ set got_job_grps 0
if {[wait_for_file $file_out] == 0} {
if {[wait_for_file $file_out] == 0} {
spawn $bin_cat $file_out
spawn $bin_cat $file_out
expect {
expect {
-re "(uid=.*\n)" {
-re "$login_grp_info" {
set job_grp_info $expect_out(1,string)
incr got_job_grps
incr got_job_grps
exp_continue
exp_continue
}
}
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test17.33
+
4
−
11
View file @
4147c9ad
#!/usr/bin/expect
#!/usr/bin/expect
############################################################################
############################################################################
# Purpose: Test of SLURM functionality
# Purpose: Test of SLURM functionality
# Test of sbatc
j
--open-mode (truncate or append) option.
# Test of sbatc
h
--open-mode (truncate or append) option.
#
#
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
# "FAILURE: ..." otherwise with an explanation of the failure, OR
# "FAILURE: ..." otherwise with an explanation of the failure, OR
...
@@ -37,7 +37,6 @@ set file_out "test$test_id.output"
...
@@ -37,7 +37,6 @@ set file_out "test$test_id.output"
set file_err "test$test_id.error"
set file_err "test$test_id.error"
set exit_code 0
set exit_code 0
set login_grp_info ""
set login_grp_info ""
set job_grp_info ""
set got_job_grps 0
set got_job_grps 0
set got_login_grps 0
set got_login_grps 0
set got_sleep_err 0
set got_sleep_err 0
...
@@ -61,7 +60,7 @@ exec echo "$bin_echo INITIAL_VALUE" >$file_out
...
@@ -61,7 +60,7 @@ exec echo "$bin_echo INITIAL_VALUE" >$file_out
#
#
spawn $bin_id
spawn $bin_id
expect {
expect {
-re "(uid=
.*\n
)" {
-re "(uid=
$number
)" {
set login_grp_info $expect_out(1,string)
set login_grp_info $expect_out(1,string)
set got_login_grps 1
set got_login_grps 1
exp_continue
exp_continue
...
@@ -103,8 +102,7 @@ if {[wait_for_file $file_out] == 0} {
...
@@ -103,8 +102,7 @@ if {[wait_for_file $file_out] == 0} {
send_user "\nFAILURE: stdout file not truncated\n"
send_user "\nFAILURE: stdout file not truncated\n"
set exit_code 1
set exit_code 1
}
}
-re "(uid=.*\n)" {
-re "$login_grp_info" {
set job_grp_info $expect_out(1,string)
incr got_job_grps
incr got_job_grps
exp_continue
exp_continue
}
}
...
@@ -122,10 +120,6 @@ if {$got_job_grps != 1} {
...
@@ -122,10 +120,6 @@ if {$got_job_grps != 1} {
send_user "\nFAILURE: User and group ID info missing from stdout\n"
send_user "\nFAILURE: User and group ID info missing from stdout\n"
set exit_code 1
set exit_code 1
}
}
if {[string compare $login_grp_info $job_grp_info] != 0} {
send_user "\nFAILURE: Login and slurm user info mismatch\n"
set exit_code 1
}
#
#
# Check for sleep input specification error in stderr
# Check for sleep input specification error in stderr
...
@@ -190,8 +184,7 @@ set got_job_grps 0
...
@@ -190,8 +184,7 @@ set got_job_grps 0
if {[wait_for_file $file_out] == 0} {
if {[wait_for_file $file_out] == 0} {
spawn $bin_cat $file_out
spawn $bin_cat $file_out
expect {
expect {
-re "(uid=.*\n)" {
-re "$login_grp_info" {
set job_grp_info $expect_out(1,string)
incr got_job_grps
incr got_job_grps
exp_continue
exp_continue
}
}
...
...
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