Skip to content

Commit cf25556

Browse files
authored
Merge pull request #102 from andyzhangx/windows-ut-pipeline
add Windows unit test pipeline
2 parents ec156a9 + 86383d3 commit cf25556

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/windows.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ jobs:
2323
- name: Build
2424
run: |
2525
go build -a -o _output/smbplugin.exe ./pkg/smbplugin
26+
- name: Run Windows Unit Tests
27+
run: |
28+
go test -v -race ./pkg/smb/...
29+
go test -v -race ./pkg/csi-common/...
30+
go test -v -race ./pkg/mounter/...

pkg/mounter/safe_mounter_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (mounter *CSIProxyMounter) SMBMount(source, target, fsType string, mountOpt
6565
}
6666

6767
if !parentExists {
68-
klog.Infof("Parent directory %s does not exists. Creating the directory")
68+
klog.Infof("Parent directory %s does not exists. Creating the directory", parentDir)
6969
err := mounter.MakeDir(parentDir)
7070
if err != nil {
7171
return fmt.Errorf("create of parent dir: %s dailed with error: %v", parentDir, err)

0 commit comments

Comments
 (0)