From bb847f99bca6d326ed889ad9b10efb5522d69a25 Mon Sep 17 00:00:00 2001 From: Tess Gauthier Date: Tue, 20 Sep 2022 13:40:48 -0400 Subject: [PATCH] add debug on appveyor --- appveyor.yml | 1 + regress/pesterTests/SCP.Tests.ps1 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 990da0d72..abc4734c7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,7 @@ build_script: after_build: - ps: | + $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) Import-Module $env:APPVEYOR_BUILD_FOLDER\contrib\win32\openssh\AppveyorHelper.psm1 Install-OpenSSH diff --git a/regress/pesterTests/SCP.Tests.ps1 b/regress/pesterTests/SCP.Tests.ps1 index 928f2a106..3b01a8f2e 100644 --- a/regress/pesterTests/SCP.Tests.ps1 +++ b/regress/pesterTests/SCP.Tests.ps1 @@ -183,6 +183,9 @@ Describe "Tests for scp command" -Tags "CI" { if($Options.contains("-p ")) { + # TODO: Test only + Write-Verbose -Verbose "Source File LastWriteTime: $((Get-ChildItem -Path $SourceFilePath).LastWriteTime.DateTime)" + Write-Verbose -Verbose "Dest File LastWriteTime: $((Get-ChildItem -Path $DestinationFilePath).LastWriteTime.DateTime)" $equal = @(Compare-Object (Get-ChildItem -path $SourceFilePath).LastWriteTime.DateTime (Get-ChildItem -path $DestinationFilePath).LastWriteTime.DateTime ).Length -eq 0 $equal | Should Be $true }