mirror of https://github.com/ansible/ansible.git
Fix up coverage with async on Windows (#84917)
Fixes the coverage collection for Windows and async tasks. This ensures the async task still has access to the PSHost so that it can access the runspace debugger tasks on the host.pull/84796/merge
parent
390e112822
commit
b7d76a93b2
@ -0,0 +1,9 @@
|
||||
Function Test-CollectionPwshCoverage {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Test coverage for collection pwsh util.
|
||||
#>
|
||||
'foo'
|
||||
}
|
||||
|
||||
Export-ModuleMember -Function Test-CollectionPwshCoverage
|
||||
@ -1,6 +1,8 @@
|
||||
#!powershell
|
||||
|
||||
#AnsibleRequires -CSharpUtil Ansible.Basic
|
||||
#AnsibleRequires -PowerShell ..module_utils.CollectionPwshCoverage
|
||||
|
||||
$module = [Ansible.Basic.AnsibleModule]::Create($args, @{})
|
||||
$module.Result.util = Test-CollectionPwshCoverage
|
||||
$module.ExitJson()
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
#!powershell
|
||||
|
||||
#AnsibleRequires -CSharpUtil Ansible.Basic
|
||||
|
||||
$module = [Ansible.Basic.AnsibleModule]::Create($args, @{})
|
||||
$module.ExitJson()
|
||||
@ -0,0 +1,8 @@
|
||||
#!powershell
|
||||
|
||||
#AnsibleRequires -CSharpUtil Ansible.Basic
|
||||
#AnsibleRequires -PowerShell Ansible.ModuleUtils.AdjacentPwshCoverage
|
||||
|
||||
$module = [Ansible.Basic.AnsibleModule]::Create($args, @{})
|
||||
$module.Result.util = Test-AdjacentPwshCoverage
|
||||
$module.ExitJson()
|
||||
@ -0,0 +1,9 @@
|
||||
Function Test-AdjacentPwshCoverage {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Test coverage for module_util adjacent pwsh util.
|
||||
#>
|
||||
'foo'
|
||||
}
|
||||
|
||||
Export-ModuleMember -Function Test-AdjacentPwshCoverage
|
||||
Loading…
Reference in New Issue