Fix logs in the wrong place when runnning tests withotu basedir
This commit is contained in:
parent
75e1c6b1c1
commit
9e2526c4a4
2 changed files with 12 additions and 7 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
|
@ -115,7 +115,7 @@ jobs:
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: 'test-logs-${{ runner.os }}'
|
name: 'test-logs-${{ runner.os }}'
|
||||||
path: 'tests/logs/**/*'
|
path: 'tests/logs'
|
||||||
|
|
||||||
- run: ./make_package macos ${{ github.run_id }}
|
- run: ./make_package macos ${{ github.run_id }}
|
||||||
name: 'Package'
|
name: 'Package'
|
||||||
|
|
|
||||||
17
run_tests
17
run_tests
|
|
@ -1,6 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
BASEDIR=$(dirname $0)
|
SetBaseDir() {
|
||||||
|
BASEDIR=$1
|
||||||
|
if [[ ! $BASEDIR = /* ]]; then
|
||||||
|
# Relative
|
||||||
|
BASEDIR=$(pwd)/${BASEDIR}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
SetBaseDir $(dirname $0)
|
||||||
INSTALL=0
|
INSTALL=0
|
||||||
UPDATE=0
|
UPDATE=0
|
||||||
INSTALLER_ARGS=''
|
INSTALLER_ARGS=''
|
||||||
|
|
@ -15,12 +23,8 @@ while [ -n "$1" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"--basedir")
|
"--basedir")
|
||||||
shift
|
shift
|
||||||
BASEDIR=$1
|
SetBaseDir $1
|
||||||
shift
|
shift
|
||||||
if [[ ! $BASEDIR = /* ]]; then
|
|
||||||
# Relative
|
|
||||||
BASEDIR=$(pwd)/${BASEDIR}
|
|
||||||
fi
|
|
||||||
BASEDIR_CMD="let g:vimspector_base_dir='${BASEDIR}'"
|
BASEDIR_CMD="let g:vimspector_base_dir='${BASEDIR}'"
|
||||||
;;
|
;;
|
||||||
"--install")
|
"--install")
|
||||||
|
|
@ -131,6 +135,7 @@ echo "Testing with:"
|
||||||
echo " * VIMSPECTOR_MIMODE=$VIMSPECTOR_MIMODE"
|
echo " * VIMSPECTOR_MIMODE=$VIMSPECTOR_MIMODE"
|
||||||
echo " * RUN_VIM=$RUN_VIM"
|
echo " * RUN_VIM=$RUN_VIM"
|
||||||
echo " * RUN_TEST=$RUN_TEST"
|
echo " * RUN_TEST=$RUN_TEST"
|
||||||
|
echo " * BASEDIR=$BASEDIR"
|
||||||
echo " * BASEDIR_CMD=$BASEDIR_CMD"
|
echo " * BASEDIR_CMD=$BASEDIR_CMD"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue