Skip to content
Snippets Groups Projects
Commit 494814e2 authored by Morris Jette's avatar Morris Jette
Browse files

Fix test to work with DefMemNode configured

Added memory limits to the job and step. Without these, only one
  step may be able to run at a time and break the test
parent 68299d7d
No related branches found
No related tags found
No related merge requests found
...@@ -47,15 +47,15 @@ print_header $test_id ...@@ -47,15 +47,15 @@ print_header $test_id
# The "sleep 1" insures the background tasks is step 0 and foreground tasks is step 1 # The "sleep 1" insures the background tasks is step 0 and foreground tasks is step 1
# #
make_bash_script $file_in " make_bash_script $file_in "
$srun $bin_sleep $max_job_delay & $srun --mem=10 $bin_sleep $max_job_delay &
$bin_sleep 1 $bin_sleep 1
$srun $bin_sleep $max_job_delay $srun --mem=10 $bin_sleep $max_job_delay
" "
# #
# Spawn sbatch job # Spawn sbatch job
# #
set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --job-name=job.$test_id -t5 $file_in] set sbatch_pid [spawn $sbatch --output=/dev/null --error=/dev/null --mem=20 --job-name=job.$test_id -t5 $file_in]
expect { expect {
-re "Submitted batch job ($number)" { -re "Submitted batch job ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment