From 004bb48b9e2748205d91182a2ff8a2e0b04e65ad Mon Sep 17 00:00:00 2001 From: RaviAkshintala <167848931+RaviAkshintala@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:41:49 +0530 Subject: [PATCH] [Ubuntu] Updated the Kotlin pester test and Power shell version for Ubuntu24.04. (#11062) * [Ubuntu] Uodated the script to install the powershell * [Ubuntu] Fixing the powershell and kotlin --------- Co-authored-by: Ravi Akshintala --- images/ubuntu/scripts/build/install-powershell.sh | 8 +------- images/ubuntu/scripts/tests/Tools.Tests.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/images/ubuntu/scripts/build/install-powershell.sh b/images/ubuntu/scripts/build/install-powershell.sh index a3802f351..e1d56e401 100644 --- a/images/ubuntu/scripts/build/install-powershell.sh +++ b/images/ubuntu/scripts/build/install-powershell.sh @@ -11,11 +11,5 @@ source $HELPER_SCRIPTS/os.sh pwsh_version=$(get_toolset_value .pwsh.version) # Install Powershell -if is_ubuntu24; then - dependency_path=$(download_with_retry "http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu72_72.1-3ubuntu2_amd64.deb") - sudo dpkg -i "$dependency_path" - package_path=$(download_with_retry "https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-lts_7.4.2-1.deb_amd64.deb") - sudo dpkg -i "$package_path" -else + apt-get install powershell=$pwsh_version* -fi diff --git a/images/ubuntu/scripts/tests/Tools.Tests.ps1 b/images/ubuntu/scripts/tests/Tools.Tests.ps1 index 8acb23a35..54f02e72d 100644 --- a/images/ubuntu/scripts/tests/Tools.Tests.ps1 +++ b/images/ubuntu/scripts/tests/Tools.Tests.ps1 @@ -407,7 +407,7 @@ Describe "Kotlin" { "kotlinc-jvm -version" | Should -ReturnZeroExitCode } - It "kotlin-dce-js" { - "kotlin-dce-js -version" | Should -ReturnZeroExitCode + It "kotlinc-js" { + "kotlinc-js -version" | Should -ReturnZeroExitCode } }