浏览代码

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 年之前
父节点
当前提交
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)