diff --git a/azure-pipelines/templates/test-job.yml b/azure-pipelines/templates/test-job.yml index d823162..72258cf 100644 --- a/azure-pipelines/templates/test-job.yml +++ b/azure-pipelines/templates/test-job.yml @@ -34,6 +34,8 @@ jobs: inputs: targetType: inline script: | + $pwd + Get-ChildItem if ("$(Platform)" -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh } workingDirectory: '$(Build.BinariesDirectory)' diff --git a/helpers/nix-helpers.psm1 b/helpers/nix-helpers.psm1 index b8ed743..e6e3441 100644 --- a/helpers/nix-helpers.psm1 +++ b/helpers/nix-helpers.psm1 @@ -25,6 +25,8 @@ function Create-TarArchive { $CompressionTypeArgument = If ([string]::IsNullOrWhiteSpace($CompressionType)) { "" } else { "--${CompressionType}" } - Write-Debug "tar -c $CompressionTypeArgument -f $ArchivePath $SourceFolder" - tar -c $CompressionTypeArgument -f $ArchivePath $SourceFolder + Push-Location $SourceFolder + Write-Debug "tar -c $CompressionTypeArgument -f $ArchivePath ." + tar -c $CompressionTypeArgument -f $ArchivePath . + Pop-Location } \ No newline at end of file diff --git a/helpers/win-helpers.psm1 b/helpers/win-helpers.psm1 index 1f6d319..c816c35 100644 --- a/helpers/win-helpers.psm1 +++ b/helpers/win-helpers.psm1 @@ -29,6 +29,6 @@ function Create-SevenZipArchive { Push-Location $SourceFolder Write-Debug "7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder" - 7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder + 7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath $SourceFolder Pop-Location } \ No newline at end of file