Skip to content

Commit

Permalink
Set working directory for sentry server
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Dec 7, 2023
1 parent 7a9bd62 commit f9f1b6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sentry-cli/integration-test/action.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function RunApiServer([string] $ServerScript, [string] $Uri = $ServerUri)
$result.errFile = New-TemporaryFile

$result.process = Start-Process "python3" -ArgumentList @("$PSScriptRoot/$ServerScript.py", $Uri) `
-NoNewWindow -PassThru -RedirectStandardOutput $result.outFile -RedirectStandardError $result.errFile
-NoNewWindow -PassThru -RedirectStandardOutput $result.outFile -RedirectStandardError $result.errFile -WorkingDirectory $PSScriptRoot

$out = New-Object InvokeSentryResult
$out.ServerStdOut = @()
Expand Down
8 changes: 8 additions & 0 deletions sentry-cli/integration-test/tests/action.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ Describe 'Invoke-SentryServer' {
$result.UploadedDebugFiles() | Should -Be @('file3.dylib', 'file2.so', 'file1.dll')
}

It "collects proguard mapping" {
$result = Invoke-SentryServer {
Param([string]$url)
Invoke-WebRequest -Uri "$url/api/0/projects/org/project/files/dsyms/associate/" -Method Post `
}
Should -ActualValue $result.HasErrors() -BeFalse
}

It "collects envelopes" {
$result = Invoke-SentryServer {
Param([string]$url)
Expand Down

0 comments on commit f9f1b6b

Please sign in to comment.