Skip to content

Commit

Permalink
Use test ext dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SevInf committed Apr 23, 2024
1 parent fdb847f commit 80bf59b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/e2eTestsOnVsix/install_extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function installExtension({ extensionType, extensionVersion }) {
console.debug({ cli })
console.debug({ args })

const result = spawnVscode(cli, ['--install-extension', `${extensionName}@${extensionVersion}`])
const result = spawnVscode(cli, [...args, '--install-extension', `${extensionName}@${extensionVersion}`])
console.log(result)
if (result.stderr.includes('Failed')) {
console.log("It's not ready to be installed yet.")
Expand Down
3 changes: 2 additions & 1 deletion scripts/e2eTestsOnVsix/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -eu

DIR=$(dirname $0)
EXTENSION_TYPE=$1
echo "EXTENSION_TYPE: $EXTENSION_TYPE"

Expand All @@ -19,7 +20,7 @@ fi

echo "EXTENSION_FOLDER_NAME: $EXTENSION_FOLDER_NAME"

EXTENSION_INSTALL_PATH="$HOME/.vscode/extensions/$EXTENSION_FOLDER_NAME"
EXTENSION_INSTALL_PATH=$(cd $DIR/../../.vscode-test/extensions/$EXTENSION_FOLDER_NAME; pwd)

echo "Path to installed extension $EXTENSION_INSTALL_PATH"

Expand Down

0 comments on commit 80bf59b

Please sign in to comment.