2
0
Эх сурвалжийг харах

ktestctl: use read instead of wait for -w option

- wait is not very reliable
- -w option requires to use docker in interactive mode (docker run -i ...)
Daniel-Constantin Mierla 7 жил өмнө
parent
commit
d2a7bd1158
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      ktestsctl

+ 3 - 1
ktestsctl

@@ -155,7 +155,9 @@ case $1 in
 		if [ "${KTESTSWAIT}" == "yes" ]; then
 			echo
 			echo "=== waiting ..."
-			wait
+			echo "=== this option requires to use 'docker run -i ...''"
+			echo "=== to exit: press any key and <enter>"
+			read -rs -n 1 key
 		fi
 		;;
 	version)