Skip to content

Commit d93df72

Browse files
committed
chore: fix mount sanity test failure
chore: add blobfuse binary
1 parent 9c22e99 commit d93df72

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/sanity/blobfuse

13 MB
Binary file not shown.

test/sanity/run-tests-all-clouds.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@
1616

1717
# set -euo pipefail
1818

19-
if [ -z ${AZURE_CREDENTIAL_FILE} ]; then
19+
if [ ! -v AZURE_CREDENTIAL_FILE ]; then
2020
export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
2121
fi
2222

23+
GO_BIN_PATH=`which go`
24+
2325
# run test on AzurePublicCloud
2426
if [ -v aadClientSecret ]; then
27+
# run test in CI env
2528
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
2632

2733
sed -i "s/tenantId-input/$tenantId/g" $AZURE_CREDENTIAL_FILE
2834
sed -i "s/subscriptionId-input/$subscriptionId/g" $AZURE_CREDENTIAL_FILE
@@ -31,7 +37,7 @@ if [ -v aadClientSecret ]; then
3137
sed -i "s/resourceGroup-input/$resourceGroup/g" $AZURE_CREDENTIAL_FILE
3238
sed -i "s/location-input/$location/g" $AZURE_CREDENTIAL_FILE
3339

34-
go test -v ./test/sanity/...
40+
sudo ${GO_BIN_PATH} test -v ./test/sanity/...
3541
# make it always succeed for now until enabled sanity test on CI
3642
exit 0
3743
else

0 commit comments

Comments
 (0)