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
a8e82125
Commit
a8e82125
authored
14 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
better tests
parent
f581597b
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.34
+1
-1
1 addition, 1 deletion
testsuite/expect/test1.34
testsuite/expect/test20.3
+15
-4
15 additions, 4 deletions
testsuite/expect/test20.3
with
16 additions
and
5 deletions
testsuite/expect/test1.34
+
1
−
1
View file @
a8e82125
...
...
@@ -61,7 +61,7 @@ set timeout $max_job_delay
set srun_pid [spawn $srun -n1 -O $test_prog]
expect {
-re "Segmentation fault" {
send_user "\nThis
error
was expected, no worries\n"
send_user "\nThis
Seg Fault
was expected, no worries\n"
set matches 1
exp_continue
}
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test20.3
+
15
−
4
View file @
a8e82125
...
...
@@ -69,6 +69,7 @@ if {$job_id == 0} {
exit 1
}
set status 1
spawn $qdel $job_id
expect {
-re "Invalid job id" {
...
...
@@ -81,15 +82,22 @@ expect {
set exit_code 1
}
eof {
wait
catch wait reason
set status [lindex $reason 3]
}
}
if {$status != 0} {
send_user "\nFAILURE: it appears things worked ok, but we got a non-zero exit from qdel\n"
set exit_code 1
}
set status 0
set matches 0
spawn $qdel $job_id
expect {
-re "already completing or completed" {
send_user "\n
This error was expected, no worries
\n"
send_user "\n
We shouldn't see this because qdel doesn't print an error for this.
\n"
incr matches
exp_continue
}
...
...
@@ -98,10 +106,13 @@ expect {
set exit_code 1
}
eof {
wait
catch wait reason
set status [lindex $reason 3]
}
}
if {$matches != 1} {
# we should get and error code here from qdel, but no message
if {($matches != 0) || ($status == 0)} {
send_user "\nFAILURE: No error on attempt to cancel terminated job\n"
set exit_code 1
}
...
...
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