Fix npm install issue to finalize speed test fix

npm 7+ fails to install chrome-remote-interface because the package.json
dependencies do not work with newer version of npm.  This is not needed
to run the tests so we move package.json out of the way before running
npm install of chrome-remote-interface.

This is blocking the resolution of the testZoomSpeedControls issue.

Resolves: rhbz#1961246
This commit is contained in:
Scott Poore 2021-07-01 10:55:56 -05:00
parent 1bc4d38dfb
commit aa84b54aad

View File

@ -6,8 +6,14 @@ cd $SOURCE
git init
make bots test/common
# only install a subset to save time/space
npm install chrome-remote-interface sizzle
# support running from clean git tree
if [ ! -d node_modules/chrome-remote-interface ]; then
# copy package.json temporarily otherwise npm might try to install the dependencies from it
mv package.json .package.json
npm install chrome-remote-interface sizzle
mv .package.json package.json
fi
. /etc/os-release
export TEST_OS="${ID}-${VERSION_ID/./-}"