Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-01-06 03:22:00 +0300
committerisaacs <i@izs.me>2011-01-06 03:22:00 +0300
commit692826bf2a9b96850b4a12c01ed0f6b6fe09d6ac (patch)
tree42ee16c7bda4b8309c8e5d9cd74518c8fdf362c8 /test
parent098e014add4b0336db7b5d813a029f4ccdfea020 (diff)
Pass test by skipping when linked.
Diffstat (limited to 'test')
-rwxr-xr-xtest/packages/files-array-npmignore/test.sh5
-rwxr-xr-xtest/packages/files-array-simple/test.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/test/packages/files-array-npmignore/test.sh b/test/packages/files-array-npmignore/test.sh
index b14e83ff2..45def4a65 100755
--- a/test/packages/files-array-npmignore/test.sh
+++ b/test/packages/files-array-npmignore/test.sh
@@ -3,4 +3,9 @@
set -x
set -e
+if [[ $npm_package_version == "9999.0.0-LINK-"* ]]; then
+ echo "link package, skipping test"
+ exit 0
+fi
+
[ -f ./foo/baz ] && ! [ -f ./foo/bar ]
diff --git a/test/packages/files-array-simple/test.sh b/test/packages/files-array-simple/test.sh
index f0eb32196..35f3cbe03 100755
--- a/test/packages/files-array-simple/test.sh
+++ b/test/packages/files-array-simple/test.sh
@@ -3,5 +3,10 @@
set -x
set -e
+if [[ $npm_package_version == "9999.0.0-LINK-"* ]]; then
+ echo "link package, skipping test"
+ exit 0
+fi
+
# test that there is a foo file, and that there is NOT a bar file
[ -f ./foo ] && ! [ -f ./bar ]