mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Migrate tests to Pester (#2340)
* Add Pester tests * Fix incorrect merging * Remove swift test from installing script * Minor fix * Remove Haskell tests from commons tests * Fix selenium test * Fix SVN test * Fix pipx tests * Debug * Fix pipx packages test * Skip pipx for 16.04
This commit is contained in:
committed by
GitHub
parent
f58f2c1e02
commit
0a768b0726
@@ -4,6 +4,8 @@
|
||||
## Desc: Installs Swift
|
||||
################################################################################
|
||||
|
||||
source $HELPER_SCRIPTS/invoke-tests.sh
|
||||
|
||||
# Install
|
||||
image_label="$(lsb_release -rs)"
|
||||
swift_version=$(curl -s -L -N https://swift.org/download|awk -F"[ <]" '/id="swift-/ {print $4; exit}')
|
||||
@@ -20,14 +22,4 @@ ln -s "$SWIFT_BIN" /usr/local/bin/swift
|
||||
ln -s "$SWIFTC_BIN" /usr/local/bin/swiftc
|
||||
echo "SWIFT_PATH=$SWIFT_PATH" | tee -a /etc/environment
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||
if ! command -v swift; then
|
||||
echo "Swift was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v swiftc; then
|
||||
echo "Swiftc is not linked to swift binary"
|
||||
exit 1
|
||||
fi
|
||||
invoke_tests "Common" "Swift"
|
||||
Reference in New Issue
Block a user