appveyor: use a POSIX prereq
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Feb 12, 2016 at 05:14 UTC
ea8d8aaa135fa7eb4c4db451cce92600aa4017b4
3 files changed
+6
-2
appveyor.yml
+1
-1
@@ -12,8 +12,8 @@ clone_folder: c:\go\src\github.com\ipfs\go-ipfs
12
13
environment:
14
GOPATH: c:\gopath
15
+ TEST_VERBOSE: 1
16
#TEST_NO_FUSE: 1
16
- #TEST_VERBOSE: 1
17
#TEST_SUITE: test_sharness_expensive
18
#GOFLAGS: -tags nofuse
19
global:
test/sharness/lib/test-lib.sh
+4
@@ -44,10 +44,14 @@ test "$TEST_NO_FUSE" != 1 && test_set_prereq FUSE
44
test "$TEST_EXPENSIVE" = 1 && test_set_prereq EXPENSIVE
45
test "$TEST_NO_DOCKER" != 1 && type docker && test_set_prereq DOCKER
46
47
+TEST_OS=$(uname -s | tr [a-z] [A-Z])
48
+test expr "$TEST_OS" : "CYGWIN_NT" >/dev/null && test_set_prereq POSIX
49
+
50
if test "$TEST_VERBOSE" = 1; then
51
echo '# TEST_VERBOSE='"$TEST_VERBOSE"
52
echo '# TEST_NO_FUSE='"$TEST_NO_FUSE"
53
echo '# TEST_EXPENSIVE='"$TEST_EXPENSIVE"
54
+ echo '# TEST_OS='"$TEST_OS"
55
fi
56
57
# source our generic test lib
test/sharness/t0020-init.sh
+1
-1
@@ -19,7 +19,7 @@ test_expect_success "ipfs init fails" '
19
test_must_fail ipfs init 2> init_fail_out
20
'
21
22
-test_expect_success "ipfs init output looks good" '
22
+test_expect_success POSIX "ipfs init output looks good" '
23
echo "Error: failed to take lock at $IPFS_PATH: permission denied" > init_fail_exp &&
24
test_cmp init_fail_exp init_fail_out
25
'