mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 22:43:22 +08:00
* [macOS] change Invoke-Pester function * added new logic * try another approach. * invoke-tests change * added a little bunch of tests. * remove import from browsers * added source for all tests covered scripts. * run all tests. * added proper module import * RunAll-Tests.ps1 changes. * added shebang * added new approach for tests. * the first line should be shebang * fixed nitpicks
17 lines
439 B
Bash
Executable File
17 lines
439 B
Bash
Executable File
#!/bin/bash -e -o pipefail
|
|
|
|
source ~/utils/utils.sh
|
|
source ~/utils/invoke-tests.sh
|
|
|
|
AZCOPY_DOWNLOAD_URL="https://aka.ms/downloadazcopy-v10-mac"
|
|
|
|
download_with_retries $AZCOPY_DOWNLOAD_URL "/tmp" "azcopy.zip"
|
|
unzip /tmp/azcopy.zip -d azcopy
|
|
AZCOPY_EXTRACTED=$(echo azcopy/azcopy*)
|
|
cp "$AZCOPY_EXTRACTED/azcopy" "/usr/local/bin/azcopy"
|
|
chmod +x "/usr/local/bin/azcopy"
|
|
|
|
echo "Done, cleaning up"
|
|
rm -rf azcopy*
|
|
|
|
invoke_tests "Common" "Azcopy" |