From 437bc766869f113acf366aa433c596c0da2af878 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 3 Sep 2020 12:20:17 +0200 Subject: [PATCH] test: Avoid npm install downloading everything In the presence of a package-lock.json, `npm install` apparently downloads all packages even when giving explicit ones on the CLI. Avoid that by removing package-lock.json before. --- tests/run-test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run-test.sh b/tests/run-test.sh index d4126ea..fe19ae0 100755 --- a/tests/run-test.sh +++ b/tests/run-test.sh @@ -22,6 +22,7 @@ fi git clone --depth=1 https://github.com/cockpit-project/bots # only install a subset to save time/space +rm package.json package-lock.json # otherwise the command below installs *everything*, argh npm install axe-core chrome-remote-interface sizzle export TEST_OS="${ID}-${VERSION_ID/./-}"