File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
# set -euo pipefail
18
18
19
- if [ -z ${ AZURE_CREDENTIAL_FILE} ]; then
19
+ if [ ! -v AZURE_CREDENTIAL_FILE ]; then
20
20
export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
21
21
fi
22
22
23
+ GO_BIN_PATH=` which go`
24
+
23
25
# run test on AzurePublicCloud
24
26
if [ -v aadClientSecret ]; then
27
+ # run test in CI env
25
28
cp test/integration/azure.json $AZURE_CREDENTIAL_FILE
29
+ # copy blobfuse binary
30
+ sudo mkdir /usr/blob
31
+ sudo cp test/sanity/blobfuse /usr/blob/blobfuse
26
32
27
33
sed -i " s/tenantId-input/$tenantId /g" $AZURE_CREDENTIAL_FILE
28
34
sed -i " s/subscriptionId-input/$subscriptionId /g" $AZURE_CREDENTIAL_FILE
@@ -31,7 +37,7 @@ if [ -v aadClientSecret ]; then
31
37
sed -i " s/resourceGroup-input/$resourceGroup /g" $AZURE_CREDENTIAL_FILE
32
38
sed -i " s/location-input/$location /g" $AZURE_CREDENTIAL_FILE
33
39
34
- go test -v ./test/sanity/...
40
+ sudo ${GO_BIN_PATH} test -v ./test/sanity/...
35
41
# make it always succeed for now until enabled sanity test on CI
36
42
exit 0
37
43
else
You can’t perform that action at this time.
0 commit comments