File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
CSI_ENDPOINTS=" tcp://127.0.0.1:9998"
4
- CSI_ENDPOINTS=" $CSI_ENDPOINTS /tmp/csi.sock. $$ "
5
- CSI_ENDPOINTS=" $CSI_ENDPOINTS unix:///tmp/csi.sock. $$ "
6
- CSI_ENDPOINTS=" $CSI_ENDPOINTS csi.sock. $$ "
4
+ CSI_ENDPOINTS=" $CSI_ENDPOINTS /tmp/e2e- csi-sanity .sock"
5
+ CSI_ENDPOINTS=" $CSI_ENDPOINTS unix:///tmp/e2e- csi-sanity .sock"
6
+ CSI_ENDPOINTS=" $CSI_ENDPOINTS e2e- csi-sanity .sock"
7
7
8
8
go get -u github.com/thecodeteam/gocsi/mock
9
9
cd cmd/csi-sanity
@@ -21,13 +21,13 @@ for endpoint in $CSI_ENDPOINTS ; do
21
21
csi-sanity $@ --csi.endpoint=$endpoint ; ret=$?
22
22
kill -9 $pid
23
23
24
- if [ $ret -ne 0 ] ; then
25
- exit $ret
26
- fi
27
-
28
24
if ! echo $endpoint | grep tcp > /dev/null 2>&1 ; then
29
25
rm -f $endpoint
30
26
fi
27
+
28
+ if [ $ret -ne 0 ] ; then
29
+ exit $ret
30
+ fi
31
31
done
32
32
33
33
exit 0
You can’t perform that action at this time.
0 commit comments