Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests\Unit\MSFT_xPackageResource.Tests.ps1: Test Executable Fails When Run from Path Containing Spaces #580

Closed
mhendric opened this issue Mar 6, 2019 · 2 comments · Fixed by #588
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.

Comments

@mhendric
Copy link
Contributor

mhendric commented Mar 6, 2019

Details of the scenario you tried and the problem that is occurring

Multiple tests in Tests\Unit\MSFT_xPackageResource.Tests.ps1 require Interactivity. Specifically, the Windows Installer help GUI is getting invoked, and you can't move forward until you hit OK. If this problem is in fact isolated to Windows Server 2019, it's possible that the Windows Installer options have changed. My Windows Installer version shows as 5.0.17763.1.

The operating system the target node is running

OsName : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}

Version and build of PowerShell the target node is running

PS C:> $PSVersionTable

Name Value


PSVersion 5.1.17763.316
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.316
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Version of the DSC module that was used ('dev' if using current dev branch)

dev

@mhendric mhendric added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Mar 6, 2019
@mhendric mhendric added in progress The issue is being actively worked on by someone. and removed help wanted The issue is up for grabs for anyone in the community. labels Mar 6, 2019
@mhendric
Copy link
Contributor Author

mhendric commented Mar 6, 2019

I got this.

@mhendric mhendric changed the title Tests\Unit\MSFT_xPackageResource.Tests.ps1: Tests Require Interactivity (on Windows 2019) Tests\Unit\MSFT_xPackageResource.Tests.ps1: Test Executable Fails When Run from Path Containing Spaces Mar 7, 2019
@mhendric
Copy link
Contributor Author

mhendric commented Mar 7, 2019

It looks like this one is not a Windows 2019 specific problem. I was able to reproduce on Windows 2016. It looks like the problem is instead with the test executable, and if it's run from a folder path that contains spaces. I suspect helper function New-TestExecutable is where the problem resides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.
Projects
None yet
1 participant