mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[Ubuntu] Implement first Pester tests (#2270)
* implement first pester tests * add comment for azcopy test * remove extra importing and old function * resolve comments * fix typo
This commit is contained in:
committed by
GitHub
parent
be672cb22c
commit
2b93b03377
13
images/linux/scripts/helpers/invoke-tests.sh
Normal file
13
images/linux/scripts/helpers/invoke-tests.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: invoke-tests.sh
|
||||
## Desc: Helper function for invoking tests
|
||||
################################################################################
|
||||
|
||||
invoke_tests() {
|
||||
local TEST_FILE="$1"
|
||||
local TEST_NAME="$2"
|
||||
|
||||
pwsh -Command "Import-Module '$HELPER_SCRIPTS/Tests.Helpers.psm1' -DisableNameChecking
|
||||
Invoke-PesterTests -TestFile $TEST_FILE -TestName $TEST_NAME"
|
||||
}
|
||||
Reference in New Issue
Block a user