mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
fix(installation-tests): keep npm scratch space to debug tests (#13625)
This way we can debug test failures between runs.
This commit is contained in:
parent
20957f820d
commit
19010a5ffa
@ -67,8 +67,7 @@ function clean_test_root() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function initialize_test {
|
function initialize_test {
|
||||||
TEST_TMP_NPM_SCRATCH_SPACE="$(mktemp -d)";
|
trap "report_test_result; kill %1; cd $(pwd -P);" EXIT
|
||||||
trap "report_test_result; kill %1; rm -rf $TEST_TMP_NPM_SCRATCH_SPACE; cd $(pwd -P);" EXIT
|
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
|
|
||||||
# cleanup environment
|
# cleanup environment
|
||||||
@ -120,6 +119,7 @@ function initialize_test {
|
|||||||
|
|
||||||
# Start up our local registry and configure npm to use it
|
# Start up our local registry and configure npm to use it
|
||||||
local-playwright-registry start &
|
local-playwright-registry start &
|
||||||
|
TEST_TMP_NPM_SCRATCH_SPACE="${TEST_FRAMEWORK_RUN_ROOT}/${TEST_NAME}--npm-scratch-space"
|
||||||
export npm_config_prefix="$TEST_TMP_NPM_SCRATCH_SPACE/npm_prefix"
|
export npm_config_prefix="$TEST_TMP_NPM_SCRATCH_SPACE/npm_prefix"
|
||||||
export npm_config_cache="$TEST_TMP_NPM_SCRATCH_SPACE/npm_cache"
|
export npm_config_cache="$TEST_TMP_NPM_SCRATCH_SPACE/npm_cache"
|
||||||
export npm_config_registry="$(local-playwright-registry wait-for-ready)"
|
export npm_config_registry="$(local-playwright-registry wait-for-ready)"
|
||||||
|
Loading…
Reference in New Issue
Block a user