Raise autocommand when installer completes. use this in testing
This commit is contained in:
parent
23e5f6bbf4
commit
0140a607b1
5 changed files with 84 additions and 24 deletions
23
run_tests
23
run_tests
|
|
@ -25,6 +25,11 @@ while [ -n "$1" ]; do
|
|||
INSTALL=1
|
||||
shift
|
||||
;;
|
||||
"--install-method")
|
||||
shift
|
||||
INSTALL=$1
|
||||
shift
|
||||
;;
|
||||
"--report")
|
||||
shift
|
||||
VIMSPECTOR_TEST_STDOUT=$1
|
||||
|
|
@ -71,8 +76,22 @@ if [ "${out_fd}" = "1" ]; then
|
|||
exec 3>&1
|
||||
fi
|
||||
|
||||
if [ $INSTALL = 1 ]; then
|
||||
python3 $(dirname $0)/install_gadget.py --basedir ${BASEDIR} --all
|
||||
if [ "$INSTALL" = "1" ] || [ "$INSTALL" = "script" ]; then
|
||||
if ! python3 $(dirname $0)/install_gadget.py --basedir ${BASEDIR} --all; then
|
||||
echo "Script installation reported errors" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$INSTALL" = "1" ] || [ "$INSTALL" = "vim" ]; then
|
||||
if ! $RUN_VIM -u $(dirname $0)/tests/vimrc \
|
||||
--cmd "${BASEDIR_CMD}" \
|
||||
-c 'autocmd User VimspectorInstallSuccess qa!' \
|
||||
-c 'autocmd User VimspectorInstallFailed cquit!' \
|
||||
-c "VimspectorInstall --all"; then
|
||||
echo "Vim installation reported errors" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$VIMSPECTOR_MIMODE" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue