Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: remove run-driver wrapper in driver (#30027)
Max Schmitt2bd3e104ab6a
diff --git a/utils/build/build-playwright-driver.sh b/utils/build/build-playwright-driver.shindex 471d7505f5..5e56bf0896 100755--- a/utils/build/build-playwright-driver.sh+++ b/utils/build/build-playwright-driver.sh@@ -22,7 +22,6 @@ function build {NODE_DIR=$1SUFFIX=$2ARCHIVE=$3- RUN_DRIVER=$4NODE_URL=https://nodejs.org/dist/v${NODE_VERSION}/${NODE_DIR}.${ARCHIVE}echo "Building playwright-${PACKAGE_VERSION}-${SUFFIX}"@@ -57,16 +56,6 @@ function build {rm package-lock.jsoncd ..- if [[ "${RUN_DRIVER}" == *".cmd" ]]; then- cp ../../${RUN_DRIVER} ./playwright.cmd- chmod +x ./playwright.cmd- elif [[ "${RUN_DRIVER}" == *".sh" ]]; then- cp ../../${RUN_DRIVER} ./playwright.sh- chmod +x ./playwright.sh- else- echo "Unsupported RUN_DRIVER ${RUN_DRIVER}"- exit 1- fi# NPM install does intentionally set the modification date back to 1985 for all the files. This confuses language binding# update mechanisms, which expect the modification date to be recent to decide which file to override. See:@@ -77,8 +66,8 @@ function build {zip -q -r ../playwright-${PACKAGE_VERSION}-${SUFFIX}.zip .}-build "node-v${NODE_VERSION}-darwin-x64" "mac" "tar.gz" "run-driver-posix.sh"-build "node-v${NODE_VERSION}-darwin-arm64" "mac-arm64" "tar.gz" "run-driver-posix.sh"-build "node-v${NODE_VERSION}-linux-x64" "linux" "tar.gz" "run-driver-posix.sh"-build "node-v${NODE_VERSION}-linux-arm64" "linux-arm64" "tar.gz" "run-driver-posix.sh"-build "node-v${NODE_VERSION}-win-x64" "win32_x64" "zip" "run-driver-win.cmd"+build "node-v${NODE_VERSION}-darwin-x64" "mac" "tar.gz"+build "node-v${NODE_VERSION}-darwin-arm64" "mac-arm64" "tar.gz"+build "node-v${NODE_VERSION}-linux-x64" "linux" "tar.gz"+build "node-v${NODE_VERSION}-linux-arm64" "linux-arm64" "tar.gz"+build "node-v${NODE_VERSION}-win-x64" "win32_x64" "zip"diff --git a/utils/build/run-driver-posix.sh b/utils/build/run-driver-posix.shdeleted file mode 100755index af4ed059c5..0000000000--- a/utils/build/run-driver-posix.sh+++ /dev/null@@ -1,6 +0,0 @@-#!/bin/sh-SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"-if [ -z "$PLAYWRIGHT_NODEJS_PATH" ]; then- PLAYWRIGHT_NODEJS_PATH="$SCRIPT_PATH/node"-fi-"$PLAYWRIGHT_NODEJS_PATH" "$SCRIPT_PATH/package/cli.js" "$@"diff --git a/utils/build/run-driver-win.cmd b/utils/build/run-driver-win.cmddeleted file mode 100755index 69e98709a0..0000000000--- a/utils/build/run-driver-win.cmd+++ /dev/null@@ -1,4 +0,0 @@-@echo off-setlocal-if not defined PLAYWRIGHT_NODEJS_PATH set PLAYWRIGHT_NODEJS_PATH=%~dp0node.exe-"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0package\cli.js" %*\ No newline at end of file