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
8831e23b
Commit
8831e23b
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Convert test to use unique file names based upon pid.
parent
d7bd8b4e
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/test14.4
+13
-10
13 additions, 10 deletions
testsuite/expect/test14.4
with
13 additions
and
10 deletions
testsuite/expect/test14.4
+
13
−
10
View file @
8831e23b
...
@@ -53,17 +53,20 @@ if {[test_front_end] != 0} {
...
@@ -53,17 +53,20 @@ if {[test_front_end] != 0} {
# Delete left-over stdout/err files
# Delete left-over stdout/err files
# Build input script file that broacasts a file
# Build input script file that broacasts a file
#
#
set pid [pid]
set file1 "/tmp/test.$pid.1.$test_id"
set file2 "/tmp/test.$pid.2.$test_id"
exec $bin_rm -f $file_out $file_err
exec $bin_rm -f $file_out $file_err
make_bash_script $file_in "
make_bash_script $file_in "
$srun $bin_touch
/tmp/test1.$test_id
$srun $bin_touch
$file1
$sbcast $sbcast
/tmp/test1.$test_id
$sbcast $sbcast
$file1
$srun $bin_diff $sbcast
/tmp/test1.$test_id
$srun $bin_diff $sbcast
$file1
$srun $bin_rm -f
/tmp/test1.$test_id
$srun $bin_rm -f
$file1
$srun $bin_touch
/tmp/test2.$test_id
$srun $bin_touch
$file2
$sbcast $sbcast --force
/tmp/test2.$test_id
$sbcast $sbcast --force
$file2
$srun $bin_diff $sbcast
/tmp/test2.$test_id
$srun $bin_diff $sbcast
$file2
$srun $bin_rm -f
/tmp/test2.$test_id
$srun $bin_rm -f
$file2
"
"
#
#
...
@@ -104,11 +107,11 @@ set differ_found 0
...
@@ -104,11 +107,11 @@ set differ_found 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 "
/tmp/test1.$test_id
differ" {
-re "
$file1
differ" {
set differ_found 1
set differ_found 1
exp_continue
exp_continue
}
}
-re "
/tmp/test2.$test_id
differ" {
-re "
$file2
differ" {
send_user "\nFAILURE: sbcast failed to overwrite file with --force option\n"
send_user "\nFAILURE: sbcast failed to overwrite file with --force option\n"
set exit_code 1
set exit_code 1
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