Skip to content

Commit 1cd1e52

Browse files
committed
test: run integration test as root user
1 parent 8953fd2 commit 1cd1e52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/integration/run-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ if [ -v aadClientSecret ]; then
7272
if [ "$cloud" != "AzureChinaCloud" ]; then
7373
# blobfuse mount/unmount on travis VM does not work against AzureChinaCloud
7474
echo "mount volume test:"
75-
sudo $csc node publish --endpoint $endpoint --cap 1,block --target-path $target_path $volumeid
75+
$csc node publish --endpoint $endpoint --cap 1,block --target-path $target_path $volumeid
7676
retcode=$?
7777
if [ $retcode -gt 0 ]; then
7878
exit $retcode
7979
fi
8080
sleep 2
8181

8282
echo "unmount volume test:"
83-
sudo $csc node unpublish --endpoint $endpoint --target-path $target_path $volumeid
83+
$csc node unpublish --endpoint $endpoint --target-path $target_path $volumeid
8484
retcode=$?
8585
if [ $retcode -gt 0 ]; then
8686
exit $retcode

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ -v aadClientSecret ]; then
3636
sed -i "s/location-input/$location/g" $AZURE_CREDENTIAL_FILE
3737
fi
3838

39-
test/integration/run-test.sh "tcp://127.0.0.1:10000" "/tmp/testmount1" "AzurePublicCloud"
39+
sudo test/integration/run-test.sh "tcp://127.0.0.1:10000" "/tmp/testmount1" "AzurePublicCloud"
4040

4141
# run test on AzureChinaCloud
4242
if [ -v aadClientSecret_china ]; then
@@ -50,5 +50,5 @@ if [ -v aadClientSecret_china ]; then
5050
sed -i "s/resourceGroup-input/${resourceGroup_china}/g" $AZURE_CREDENTIAL_FILE
5151
sed -i "s/location-input/${location_china}/g" $AZURE_CREDENTIAL_FILE
5252

53-
test/integration/run-test.sh "tcp://127.0.0.1:10001" "/tmp/testmount2" "AzureChinaCloud"
53+
sudo test/integration/run-test.sh "tcp://127.0.0.1:10001" "/tmp/testmount2" "AzureChinaCloud"
5454
fi

0 commit comments

Comments
 (0)