From f75b02df1751bc000972ee65b80b1381a5eddc71 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Sun, 8 Jan 2023 15:33:09 +0800 Subject: [PATCH] ci: test ask_for_yn --- tools/test.zsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/test.zsh b/tools/test.zsh index ff7e4e3..23ccbbf 100644 --- a/tools/test.zsh +++ b/tools/test.zsh @@ -23,9 +23,13 @@ test ~ -ef "$(pwd)" dogo doll dfs cd -./tools/test-getopts.sh -tools/common.sh get_os_type -tools/common.sh get_linux_dist +tools/test-getopts.sh +tools/common.sh get_os_name +test $(echo y | tools/common.sh ask_for_yN "test") = "1" +test $(echo n | tools/common.sh ask_for_yN "test") = "0" +test $(echo | tools/common.sh ask_for_yN "test") = "0" +test $(echo | tools/common.sh ask_for_Yn "test") = "1" +test $(DFS_QUIET=1 tools/common.sh ask_for_Yn "test") = "1" # check alias alias p114