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

Tweak test to shorten output file

Expect sometimes has trouble parsing the output file of this test.
The test has been modified to decrease the output file size, which
seems work better. Note: No change in what is being tested.
parent 62631b3f
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ set env_flag_debug 0
set env_name_debug "SLURM_DEBUG"
set env_valu_debug 1
set env_name_nnodes "SLURM_NNODES"
set file_in "test$test_id.input"
print_header $test_id
......@@ -84,10 +85,12 @@ set env($env_name_stdout) $env_valu_stdout
set env($env_name_overcom) $env_valu_overcom
exec $bin_rm -f $env_valu_stdout
make_bash_script $file_in "env | $bin_grep MP_; env | $bin_grep SLURM_"
#
# Spawn a job via srun using these environment variables
#
set srun_pid [spawn $srun -t1 $bin_env]
set srun_pid [spawn $srun -t1 $file_in]
expect {
-re "jobid ($number)" {
set job_id $expect_out(1,string)
......@@ -184,7 +187,7 @@ if {$max_node_val > $max_nodes} {
# Post processing
#
if {$exit_code == 0} {
exec $bin_rm -f $env_valu_stdout
exec $bin_rm -f $env_valu_stdout $file_in
send_user "\nSUCCESS\n"
}
exit $exit_code
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