add debug on appveyor

This commit is contained in:
Tess Gauthier 2022-09-20 13:40:48 -04:00
parent b006c8d8f4
commit bb847f99bc
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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
}