Skip to content

Commit 5fa36cc

Browse files
committed
test: fix shell scripts
fix shell
1 parent 4d9f0e2 commit 5fa36cc

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

test/integration/run-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ function cleanup {
2222
pkill -f blobplugin
2323
}
2424

25-
readonly volname="citest-$(date +%s)"
25+
t=$(date +%s)
26+
readonly volname="citest-$t"
2627
readonly volsize="2147483648"
2728
readonly expanded_vol_size="2147483650"
2829
readonly endpoint="$1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ apt update && apt install libfuse2 -y
5151
if [[ -z "$(command -v csi-sanity)" ]]; then
5252
install_csi_sanity_bin
5353
fi
54-
test/sanity/run-test.sh "$nodeid"
54+
test/sanity/run-test.sh

test/utils/blob_log.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# Copyright 2020 The Kubernetes Authors.
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,8 +14,6 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

15-
#!/bin/bash
16-
1717
set -e
1818

1919
NS=kube-system

test/utils/check_driver_pods_restart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# Copyright 2020 The Kubernetes Authors.
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,8 +14,6 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

15-
#!/bin/bash
16-
1717
set -e
1818

1919
echo "check the driver pods if restarts ..."

test/utils/get_storage_account_secret_name.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# Copyright 2020 The Kubernetes Authors.
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,7 +14,5 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

15-
#!/bin/bash
16-
1717
set -e
1818
kubectl get secret | grep azure-storage-account | head -n 1 | awk '{print $1}'

0 commit comments

Comments
 (0)