Skip to content

Commit

Permalink
[Ubuntu] Updated the Kotlin pester test and Power shell version for U…
Browse files Browse the repository at this point in the history
…buntu24.04. (actions#11062)

* [Ubuntu] Uodated the script to install the powershell

* [Ubuntu] Fixing the powershell and kotlin

---------

Co-authored-by: Ravi Akshintala <[email protected]>
  • Loading branch information
RaviAkshintala and Ravi Akshintala authored Nov 28, 2024
1 parent 5a26302 commit 004bb48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions images/ubuntu/scripts/build/install-powershell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions images/ubuntu/scripts/tests/Tools.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 004bb48

Please sign in to comment.