We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a8b9a commit 9c22e99Copy full SHA for 9c22e99
test/sanity/run-tests-all-clouds.sh
@@ -16,7 +16,9 @@
16
17
# set -euo pipefail
18
19
-export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
+if [ -z ${AZURE_CREDENTIAL_FILE} ]; then
20
+ export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
21
+fi
22
23
# run test on AzurePublicCloud
24
if [ -v aadClientSecret ]; then
@@ -30,7 +32,13 @@ if [ -v aadClientSecret ]; then
30
32
sed -i "s/location-input/$location/g" $AZURE_CREDENTIAL_FILE
31
33
34
go test -v ./test/sanity/...
35
+ # make it always succeed for now until enabled sanity test on CI
36
+ exit 0
37
+else
38
+ if [ -v subscriptionId ]; then
39
+ echo "skip sanity test in CI env"
40
+ else
41
+ # run test in user mode
42
+ go test -v ./test/sanity/...
43
+ fi
44
fi
-
-# make it always succeed for now
-exit 0
0 commit comments