Skip to content

Commit 937a86c

Browse files
committed
Merge branch 'qa' into 'master'
See merge request SchedMD/dev/slurm!2669
2 parents 60190e1 + f49f2d7 commit 937a86c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

‎testsuite/expect/test6.15‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ proc test_signaling { batch full } {
123123
# Wait for job completion
124124
#
125125
wait_for_job -fail $job_id DONE
126+
wait_for_file -fail $file_out
127+
set output ""
128+
wait_for -fail {[regexp -all "Ending: " $output] == 4} {
129+
set output [run_command_output -fail "$bin_cat $file_out"]
130+
}
126131

127132
set expected_script_signaled 0
128133
set expected_parent_step_signaled 0

‎testsuite/expect/test6.15.prog.c‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,16 @@ int main(int argc, char *argv[])
5656
if (pid)
5757
wait(NULL);
5858

59+
if (pid)
60+
if (step)
61+
printf("Ending: parent_step\n");
62+
else
63+
printf("Ending: parent_command\n");
64+
else
65+
if (step)
66+
printf("Ending: child_step\n");
67+
else
68+
printf("Ending: child_command\n");
69+
5970
return 0;
6071
}

0 commit comments

Comments
 (0)