diff options
author | isaacs <i@izs.me> | 2011-01-06 03:22:00 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-01-06 03:22:00 +0300 |
commit | 692826bf2a9b96850b4a12c01ed0f6b6fe09d6ac (patch) | |
tree | 42ee16c7bda4b8309c8e5d9cd74518c8fdf362c8 /test | |
parent | 098e014add4b0336db7b5d813a029f4ccdfea020 (diff) |
Pass test by skipping when linked.
Diffstat (limited to 'test')
-rwxr-xr-x | test/packages/files-array-npmignore/test.sh | 5 | ||||
-rwxr-xr-x | test/packages/files-array-simple/test.sh | 5 |
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 ] |