Skip to content

Commit

Permalink
chore(acceptance): fix the issue 'HW_SFS_FILE_SYSTEM_NAMES' is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhuanhong committed Dec 26, 2024
1 parent 780ac76 commit 155a1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huaweicloud/services/acceptance/acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2774,7 +2774,7 @@ func TestAccPrecheckSFSTurboBackupId(t *testing.T) {
// lintignore:AT003
func TestAccPrecheckSfsFileSystemNames(t *testing.T, min int) {
// For this acceptance test, you should prepare three SFS file systems.
if len(strings.Split(HW_SFS_FILE_SYSTEM_NAMES, ",")) < min {
if HW_SFS_FILE_SYSTEM_NAMES == "" || len(strings.Split(HW_SFS_FILE_SYSTEM_NAMES, ",")) < min {
t.Skip("At least three file system name must be supported during the HW_SFS_FILE_SYSTEM_NAMES, and separated by commas")
}
}
Expand Down

0 comments on commit 155a1c3

Please sign in to comment.