mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
cmdlineTests.sh: Add edit and skip options like in isoltest
This commit is contained in:
parent
a4e228e552
commit
8ac36068fc
@ -87,12 +87,16 @@ function ask_expectation_update
|
|||||||
then
|
then
|
||||||
update_expectation "$newExpectation" "$expectationFile"
|
update_expectation "$newExpectation" "$expectationFile"
|
||||||
else
|
else
|
||||||
|
local editor="${FCEDIT:-${VISUAL:-${EDITOR:-vi}}}"
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
read -N 1 -p "(u)pdate expectation/(q)uit? "
|
read -N 1 -p "(e)dit/(u)pdate expectations/(s)kip/(q)uit? "
|
||||||
echo
|
echo
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
|
e*) "$editor" "$expectationFile"; break;;
|
||||||
u*) update_expectation "$newExpectation" "$expectationFile"; break;;
|
u*) update_expectation "$newExpectation" "$expectationFile"; break;;
|
||||||
|
s*) return;;
|
||||||
q*) exit 1;;
|
q*) exit 1;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user