Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve committed Jan 14, 2024
1 parent 1f752ae commit 1e88d84
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Param(
)

$ErrorActionPreference = 'Stop'
# $AgentTypes = @('agent', 'inbound-agent')
$AgentTypes = @('inbound-agent')
$AgentTypes = @('agent', 'inbound-agent')
if ($AgentType -ne '' -and $AgentType -in $AgentTypes) {
$AgentTypes = @($AgentType)
}
Expand Down
6 changes: 6 additions & 0 deletions tests/agent.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ if($global:WINDOWSFLAVOR -eq 'nanoserver') {

$global:GITLFSVERSION = '3.4.1'

# # Uncomment to help debugging when working on this script
# Write-Host "= DEBUG: global vars"
# Get-Variable -Scope Global | ForEach-Object { Write-Host "$($_.Name) = $($_.Value)" }
# Write-Host "= DEBUG: env vars"
# Get-ChildItem Env: | ForEach-Object { Write-Host "$($_.Name) = $($_.Value)" }

Cleanup($global:CONTAINERNAME)

Describe "[$global:IMAGE_NAME] image is present" {
Expand Down
10 changes: 5 additions & 5 deletions tests/inbound-agent.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ if($global:WINDOWSFLAVOR -eq 'nanoserver') {
$global:CONTAINERSHELL = "pwsh.exe"
}

# Uncomment to help debugging when working on this script
Write-Host "= DEBUG: global vars"
Get-Variable -Scope Global | ForEach-Object { Write-Host "$($_.Name) = $($_.Value)" }
Write-Host "= DEBUG: env vars"
Get-ChildItem Env: | ForEach-Object { Write-Host "$($_.Name) = $($_.Value)" }
# # Uncomment to help debugging when working on this script
# Write-Host "= DEBUG: global vars"
# Get-Variable -Scope Global | ForEach-Object { Write-Host "$($_.Name) = $($_.Value)" }
# Write-Host "= DEBUG: env vars"
# Get-ChildItem Env: | ForEach-Object { Write-Host "$($_.Name) = $($_.Value)" }

Cleanup($global:CONTAINERNAME)
Cleanup("nmap")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function Is-ContainerRunning($container='') {
}
}

function Run-Program($cmd, $params, $quiet=$false) {
function Run-Program($cmd, $params, $quiet=$true) {
if(-not $quiet) {
Write-Host "cmd & params: $cmd $params"
}
Expand Down

0 comments on commit 1e88d84

Please sign in to comment.