From 9dcb7d4351ea8917447cc5d8f6e4dd3389c17b36 Mon Sep 17 00:00:00 2001 From: Sakshi Sharma <57200045+SakshiS-harma@users.noreply.github.com> Date: Mon, 14 Dec 2020 08:07:14 -0800 Subject: [PATCH] Remove redundant parameter in test scripts (#13755) --- scripts/test-extensions-unit.bat | 11 +++++------ scripts/test-extensions-unit.sh | 10 ++++------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/test-extensions-unit.bat b/scripts/test-extensions-unit.bat index 3019119dfe..8c0fbeea6e 100755 --- a/scripts/test-extensions-unit.bat +++ b/scripts/test-extensions-unit.bat @@ -108,12 +108,11 @@ REM echo *** starting mssql tests *** REM echo ****************************************** REM call "%INTEGRATION_TEST_ELECTRON_PATH%" --extensionDevelopmentPath=%~dp0\..\extensions\mssql --extensionTestsPath=%~dp0\..\extensions\mssql\out\test --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222 --disable-telemetry --disable-crash-reporter --disable-updates --nogpu -if "%RUN_DBPROJECT_TESTS%" == "true" ( - echo ******************************************** - echo *** starting sql-database-projects tests *** - echo ******************************************** - call "%INTEGRATION_TEST_ELECTRON_PATH%" --extensionDevelopmentPath=%~dp0\..\extensions\sql-database-projects --extensionTestsPath=%~dp0\..\extensions\sql-database-projects\out\test --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222 --disable-telemetry --disable-crash-reporter --disable-updates --nogpu -) +echo ******************************************** +echo *** starting sql-database-projects tests *** +echo ******************************************** +call "%INTEGRATION_TEST_ELECTRON_PATH%" --extensionDevelopmentPath=%~dp0\..\extensions\sql-database-projects --extensionTestsPath=%~dp0\..\extensions\sql-database-projects\out\test --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222 --disable-telemetry --disable-crash-reporter --disable-updates --nogpu + if %errorlevel% neq 0 exit /b %errorlevel% diff --git a/scripts/test-extensions-unit.sh b/scripts/test-extensions-unit.sh index 4a0e69ad02..3879cf50fa 100755 --- a/scripts/test-extensions-unit.sh +++ b/scripts/test-extensions-unit.sh @@ -104,12 +104,10 @@ echo ************************************************ # echo ****************************************** # "$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_NO_SANDBOX --extensionDevelopmentPath=$ROOT/extensions/mssql --extensionTestsPath=$ROOT/extensions/mssql/out/test --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --disable-telemetry --disable-crash-reporter --disable-updates --nogpu -if [[ "$RUN_DBPROJECT_TESTS" == "true" ]]; then - echo ******************************************** - echo *** starting sql-database-projects tests *** - echo ******************************************** - "$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_NO_SANDBOX --extensionDevelopmentPath=$ROOT/extensions/sql-database-projects --extensionTestsPath=$ROOT/extensions/sql-database-projects/out/test --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --disable-telemetry --disable-crash-reporter --disable-updates --nogpu -fi +echo ******************************************** +echo *** starting sql-database-projects tests *** +echo ******************************************** +"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_NO_SANDBOX --extensionDevelopmentPath=$ROOT/extensions/sql-database-projects --extensionTestsPath=$ROOT/extensions/sql-database-projects/out/test --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR --disable-telemetry --disable-crash-reporter --disable-updates --nogpu if [[ "$NO_CLEANUP" == "" ]]; then rm -r $VSCODEUSERDATADIR