cmdlineTests.sh: Add edit and skip options like in isoltest

This commit is contained in:
Kamil Śliwak 2021-01-21 13:40:18 +01:00
parent a4e228e552
commit 8ac36068fc

View File

@ -87,12 +87,16 @@ function ask_expectation_update
then
update_expectation "$newExpectation" "$expectationFile"
else
local editor="${FCEDIT:-${VISUAL:-${EDITOR:-vi}}}"
while true
do
read -N 1 -p "(u)pdate expectation/(q)uit? "
read -N 1 -p "(e)dit/(u)pdate expectations/(s)kip/(q)uit? "
echo
case $REPLY in
e*) "$editor" "$expectationFile"; break;;
u*) update_expectation "$newExpectation" "$expectationFile"; break;;
s*) return;;
q*) exit 1;;
esac
done