Skip to content

Commit a04d087

Browse files
authored
Merge pull request #1899 from jan-cerny/issue1897
Fix stuck test command_line_extra.sh
2 parents 4425d3b + 6f77f57 commit a04d087

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/probes/process58/command_line_extra.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ echo "stderr file: $stderr"
103103
ZOMBIE_PID=$(get_zombie_pid_from_ppid ${ZOMBIE_PPID})
104104
[ -n "${ZOMBIE_PPID}" ]
105105
# "[command_line_extra.sh] <defunct>"
106-
ZOMBIE_CMDLINE_REGEX='\[bash]\ <defunct>'
106+
ZOMBIE_CMDLINE_REGEX='\[(bash|sleep)]\ <defunct>'
107107

108108
# Run process with special characters in parameters
109109
"${PROC}" escaped "$(echo -ne "\e\n\E[1;33m") \\\n\e" &
@@ -116,7 +116,7 @@ echo "stderr file: $stderr"
116116
### Wait for start of all processes (all processes have done exec())
117117
########################################################################
118118
wait_for_process $PID
119-
wait_for_process ${ZOMBIE_PID} "command_line_extra.sh"
119+
wait_for_process ${ZOMBIE_PID} "+(bash|sleep)"
120120
wait_for_process ${ESCAPED_PID}
121121

122122
########################################################################

0 commit comments

Comments
 (0)