Files
runner-images-sangeeth/images/win/scripts/Tests/Miniconda.Tests.ps1
Maxim Lobanov a2d76d2a0e Add Windows Server 2022 image templates (#3929)
* add windows2022 image template

Co-authored-by: Aleksandr Chebotov <v-aleche@microsoft.com>
Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com>
Co-authored-by: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com>
Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2021-08-23 11:13:14 +03:00

14 lines
458 B
PowerShell

Describe "Miniconda" -Skip:(Test-IsWin22) {
It "Miniconda Environment variables is set. " {
${env:CONDA} | Should -Not -BeNullOrEmpty
}
It "Miniconda $env:CONDA\<PathTest> " -TestCases @(
@{ PathTest = "python.exe" }
@{ PathTest = "Scripts\conda.exe" }
) {
$condaPath = Join-Path ${env:CONDA} $PathTest
$condaPath | Should -Exist
"$condaPath --version" | Should -ReturnZeroExitCode
}
}