Skip to content

Commit 2c711b3

Browse files
committed
peter-jr - improve sigint behaviour
1 parent e24dd7d commit 2c711b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

peter-jr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ findTests \
142142
| (shuf 2>/dev/null || cat) \
143143
| while read file
144144
do
145+
trap 'echo -e "\nAborted." >&2; exit 130' 2
145146
printf "Testing %-${longestFilenameLen}s ... " "${file}"
146147
ext="${file##*.}"
147148
testName="${file%.failing}"
@@ -168,7 +169,7 @@ findTests \
168169
exitCode="$?"
169170
;;
170171
"bash")
171-
eval timeout -s9 "${timeout:-${defaultTimeout}}" bash \"$file\"
172+
eval timeout -s9 --foreground "${timeout:-${defaultTimeout}}" bash \"$file\"
172173
exitCode="$?"
173174
;;
174175
*)

0 commit comments

Comments
 (0)