Files
runner-images/images/linux/scripts/helpers/invoke-tests.sh
Dibir Magomedsaygitov 2b93b03377 [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
2020-12-17 09:52:09 +03:00

13 lines
481 B
Bash

#!/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"
}