Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if ($IsLinux) {

# Autoload (in current session) temporary modules used in our tests
$TestModulePath = Join-Path $PSScriptRoot "test/tools/Modules"
if ( -not $env:PSModulePath.contains($TestModulePath) ) {
if ( $env:PSModulePath -notcontains $TestModulePath ) {
$env:PSModulePath = $TestModulePath+$TestModulePathSeparator+$($env:PSModulePath)
}

Expand Down
5 changes: 1 addition & 4 deletions test/powershell/Host/HostUtilities.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
$remotingModule = Join-Path $PSScriptRoot "../Common/TestRemoting.psm1"
Import-Module $remotingModule

Describe "InvokeOnRunspace method argument error handling" -tags "Feature" {
Describe "InvokeOnRunspace method argument error handling" -tags "Feature" {

BeforeAll {
$command = [System.Management.Automation.PSCommand]::new()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
$remotingModule = Join-Path $PSScriptRoot "../../Common/TestRemoting.psm1"
Import-Module $remotingModule -ErrorAction SilentlyContinue

Describe "Implicit remoting and CIM cmdlets with AllSigned and Restricted policy" -tags "Feature" {
Describe "Implicit remoting and CIM cmdlets with AllSigned and Restricted policy" -tags "Feature" {

BeforeAll {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

if ($IsWindows)
{
$remotingModule = Join-Path $PSScriptRoot "../../Common/TestRemoting.psm1"
Import-Module $remotingModule -ErrorAction SilentlyContinue

$typeDef = @'
using System;
using System.Globalization;
Expand Down
75 changes: 0 additions & 75 deletions test/tools/Modules/TestHostCS/TestHostCS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,6 @@ Copyright = 'Copyright (C) Microsoft Corporation, All rights reserved.'
# Description of the functionality provided by this module
Description = 'Simple console host for console IO tests.'

# Minimum version of the Windows PowerShell engine required by this module
# PowerShellVersion = ''

# Name of the Windows PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module
# DotNetFrameworkVersion = ''

# Minimum version of the common language runtime (CLR) required by this module
# CLRVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module
FunctionsToExport = 'New-TestHost'

Expand All @@ -70,44 +34,5 @@ FunctionsToExport = 'New-TestHost'
# Aliases to export from this module
#AliasesToExport = '*'

# DSC resources to export from this module
# DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
# Tags = @()

# A URL to the license for this module.
# LicenseUri = ''

# A URL to the main website for this project.
# ProjectUri = ''

# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
# ReleaseNotes = ''

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}

37 changes: 37 additions & 0 deletions test/tools/Modules/TestRemoting/TestRemoting.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# Module manifest for module 'TestRemoting'
#

@{

# Script module or binary module file associated with this manifest.
RootModule = 'TestRemoting.psm1'

# Version number of this module.
ModuleVersion = '1.0'

# ID used to uniquely identify this module
GUID = '7acf3c68-64f4-4550-bf14-b9361bfbfea3'

# Company or vendor of this module
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Copyright (C) Microsoft Corporation, All rights reserved.'

# Description of the functionality provided by this module
Description = 'Temporary module for remoting tests'

# Functions to export from this module
FunctionsToExport = 'New-RemoteRunspace', 'New-RemoteSession'

# Cmdlets to export from this module
#CmdletsToExport = '*'

# Variables to export from this module
#VariablesToExport = '*'

# Aliases to export from this module
#AliasesToExport = '*'

}