[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:
Dibir Magomedsaygitov
2020-12-17 09:52:09 +03:00
committed by GitHub
parent be672cb22c
commit 2b93b03377
14 changed files with 262 additions and 137 deletions

View 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"
}