mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add flag to skip python install integration tests. (#5119)
This commit is contained in:
@@ -4,14 +4,18 @@ pushd %~dp0\..
|
|||||||
|
|
||||||
set VSCODEUSERDATADIR=%TMP%\adsuser-%RANDOM%-%TIME:~6,5%
|
set VSCODEUSERDATADIR=%TMP%\adsuser-%RANDOM%-%TIME:~6,5%
|
||||||
set VSCODEEXTENSIONSDIR=%TMP%\adsext-%RANDOM%-%TIME:~6,5%
|
set VSCODEEXTENSIONSDIR=%TMP%\adsext-%RANDOM%-%TIME:~6,5%
|
||||||
set PYTHON_TEST_PATH=%VSCODEUSERDATADIR%\TestPythonInstallation
|
|
||||||
echo %VSCODEUSERDATADIR%
|
echo %VSCODEUSERDATADIR%
|
||||||
echo %VSCODEEXTENSIONSDIR%
|
echo %VSCODEEXTENSIONSDIR%
|
||||||
echo %PYTHON_TEST_PATH%
|
|
||||||
@echo OFF
|
@echo OFF
|
||||||
|
|
||||||
:: This first notebook test will do the python install that the later tests depend on
|
if "%SKIP_PYTHON_INSTALL_TEST%" == "1" (
|
||||||
call .\scripts\code.bat --extensionDevelopmentPath=%~dp0\..\extensions\notebook --extensionTestsPath=%~dp0\..\extensions\notebook\out\integrationTest --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
echo Skipping Python installation tests.
|
||||||
|
) else (
|
||||||
|
set PYTHON_TEST_PATH=%VSCODEUSERDATADIR%\TestPythonInstallation
|
||||||
|
echo %PYTHON_TEST_PATH%
|
||||||
|
call .\scripts\code.bat --extensionDevelopmentPath=%~dp0\..\extensions\notebook --extensionTestsPath=%~dp0\..\extensions\notebook\out\integrationTest --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
||||||
|
)
|
||||||
|
|
||||||
call .\scripts\code.bat --extensionDevelopmentPath=%~dp0\..\extensions\integration-tests --extensionTestsPath=%~dp0\..\extensions\integration-tests\out --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
call .\scripts\code.bat --extensionDevelopmentPath=%~dp0\..\extensions\integration-tests --extensionTestsPath=%~dp0\..\extensions\integration-tests\out --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
||||||
|
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|||||||
@@ -12,14 +12,18 @@ else
|
|||||||
VSCODEEXTDIR=`mktemp -d 2>/dev/null`
|
VSCODEEXTDIR=`mktemp -d 2>/dev/null`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PYTHON_TEST_PATH=$VSCODEUSERDATADIR/TestPythonInstallation
|
|
||||||
|
|
||||||
cd $ROOT
|
cd $ROOT
|
||||||
echo $VSCODEUSERDATADIR
|
echo $VSCODEUSERDATADIR
|
||||||
echo $VSCODEEXTDIR
|
echo $VSCODEEXTDIR
|
||||||
echo $PYTHON_TEST_PATH
|
|
||||||
|
|
||||||
./scripts/code.sh --extensionDevelopmentPath=$ROOT/extensions/notebook --extensionTestsPath=$ROOT/extensions/notebook/out/integrationTest --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --remote-debugging-port=9222
|
if [[ "$SKIP_PYTHON_INSTALL_TEST" == "1" ]]; then
|
||||||
|
echo Skipping Python installation tests.
|
||||||
|
else
|
||||||
|
export PYTHON_TEST_PATH=$VSCODEUSERDATADIR/TestPythonInstallation
|
||||||
|
echo $PYTHON_TEST_PATH
|
||||||
|
./scripts/code.sh --extensionDevelopmentPath=$ROOT/extensions/notebook --extensionTestsPath=$ROOT/extensions/notebook/out/integrationTest --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --remote-debugging-port=9222
|
||||||
|
fi
|
||||||
|
|
||||||
./scripts/code.sh --extensionDevelopmentPath=$ROOT/extensions/integration-tests --extensionTestsPath=$ROOT/extensions/integration-tests/out --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --remote-debugging-port=9222
|
./scripts/code.sh --extensionDevelopmentPath=$ROOT/extensions/integration-tests --extensionTestsPath=$ROOT/extensions/integration-tests/out --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --remote-debugging-port=9222
|
||||||
|
|
||||||
rm -r -f $VSCODEUSERDATADIR
|
rm -r -f $VSCODEUSERDATADIR
|
||||||
|
|||||||
Reference in New Issue
Block a user