Skip to content

Commit

Permalink
test: fix shell scripts
Browse files Browse the repository at this point in the history
fix shell
  • Loading branch information
andyzhangx committed Feb 11, 2022
1 parent 4d9f0e2 commit 5fa36cc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion test/integration/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function cleanup {
pkill -f blobplugin
}

readonly volname="citest-$(date +%s)"
t=$(date +%s)
readonly volname="citest-$t"
readonly volsize="2147483648"
readonly expanded_vol_size="2147483650"
readonly endpoint="$1"
Expand Down
2 changes: 1 addition & 1 deletion test/sanity/run-tests-all-clouds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ apt update && apt install libfuse2 -y
if [[ -z "$(command -v csi-sanity)" ]]; then
install_csi_sanity_bin
fi
test/sanity/run-test.sh "$nodeid"
test/sanity/run-test.sh
4 changes: 2 additions & 2 deletions test/utils/blob_log.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -12,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash

set -e

NS=kube-system
Expand Down
4 changes: 2 additions & 2 deletions test/utils/check_driver_pods_restart.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -12,8 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash

set -e

echo "check the driver pods if restarts ..."
Expand Down
4 changes: 2 additions & 2 deletions test/utils/get_storage_account_secret_name.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -12,7 +14,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#!/bin/bash

set -e
kubectl get secret | grep azure-storage-account | head -n 1 | awk '{print $1}'

0 comments on commit 5fa36cc

Please sign in to comment.