From 55a07214fe4de5e8ef263ecffe23964db3ac18f7 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:20:26 +0300 Subject: [PATCH] [Windows] Update cabal pester test (#5121) * [Windows] Update cabal pester test * Add CABAL_DIR test --- images/win/scripts/Tests/Haskell.Tests.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/images/win/scripts/Tests/Haskell.Tests.ps1 b/images/win/scripts/Tests/Haskell.Tests.ps1 index db93e36d5..5893af28e 100644 --- a/images/win/scripts/Tests/Haskell.Tests.ps1 +++ b/images/win/scripts/Tests/Haskell.Tests.ps1 @@ -49,9 +49,12 @@ Describe "Haskell" { "cabal --version" | Should -ReturnZeroExitCode } - It "cabal config was modified and exists" { - $env:CABAL_DIR | Should -Exist - "cabal user-config diff" | Should -ReturnZeroExitCode + It "cabal folder does not exist" { + $env:CABAL_DIR | Should -Not -Exist + } + + It "CABAL_DIR environment variable exists" { + Get-EnvironmentVariable CABAL_DIR | Should -BeExactly "C:\cabal" } It "ghcup is installed" {