Skip to content

Fix the test that fails in Travis CI build #1792

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

Merged
merged 1 commit into from
Aug 13, 2016
Merged

Conversation

daxian-dbw
Copy link
Member

The test use of a module from two runspaces set /tmp/<guid-number> in $env:PSMODULEPATH. However, the file /tmp/powershell somehow exists in the Travis CI build machine. So when the test create a powershell object by [powershell]::create(), the module path calculation logic incorrectly believed that /tmp/<guid-number> is a PSHome module path derived from parent process and thus removed it.

The detection of a derived PSHome module path could be smarter, it's tracked in #1744
This PR will resolve the failure from the test side, so that our build can be fixed.

@mirichmo
Copy link
Member

LGTM

@mirichmo mirichmo merged commit 9ab60d6 into master Aug 13, 2016
@mirichmo mirichmo deleted the dongbo/fix-build branch August 13, 2016 01:36
JamesWTruher referenced this pull request in JamesWTruher/PowerShell Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Maintainers-Build specific to affecting the build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants