Skip to content

Commit bf3bbf7

Browse files
committed
fix
1 parent 2589b3e commit bf3bbf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
go build -v -a -o ./bin/csi-proxy.exe ./cmd/csi-proxy
2020
go build -v -a -o ./bin/csi-proxy-api-gen.exe ./cmd/csi-proxy-api-gen
2121
- name: Run Windows Integration Tests
22-
shell: powershell
2322
run: |
2423
# required for running Volume and Disk tests
2524
Install-WindowsFeature -name Hyper-V-PowerShell
25+
2626
# start the CSI Proxy before running tests on windows
2727
Start-Job -Name CSIProxy -ScriptBlock {
2828
.\bin\csi-proxy.exe

integrationtests/smb_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ func randomString(length int) string {
3030
}
3131

3232
func setupUser(username, password string) error {
33-
cmdLine := fmt.Sprintf(`;$PWord = ConvertTo-SecureString $Env:password -AsPlainText -Force` +
33+
cmdLine := fmt.Sprintf(`set "PSModulePath="` +
34+
`;$PWord = ConvertTo-SecureString $Env:password -AsPlainText -Force` +
3435
`;New-Localuser -name $Env:username -accountneverexpires -password $PWord`)
3536
cmd := exec.Command("powershell", "/c", cmdLine)
3637
cmd.Env = append(os.Environ(),

0 commit comments

Comments
 (0)