Fix a test to use the targeted powershell rather than the system installed one (#3286)

This commit is contained in:
Steve Lee 2017-03-08 16:38:05 -08:00 committed by Dongbo Wang
parent 03b00e6522
commit 44bd923d22

View file

@ -399,7 +399,7 @@ foo
$env:XDG_CACHE_HOME = "/dev/cpu"
$env:XDG_DATA_HOME = "/dev/cpu"
$env:XDG_CONFIG_HOME = "/dev/cpu"
$output = & powershell -noprofile -Command { (get-command).count }
$output = & $powershell -noprofile -Command { (get-command).count }
[int]$output | Should BeGreaterThan 0
}
}