Skip to content

Commit ed12800

Browse files
authored
Merge pull request #63 from Giorgi/Python-server-directory
2 parents 7a9bd62 + f1f89c5 commit ed12800

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- sentry-server.py - The scriptroot is being set as `WorkingDirectory`.
8+
39
## 2.8.0
410

511
### Fixes

sentry-cli/integration-test/action.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function RunApiServer([string] $ServerScript, [string] $Uri = $ServerUri)
7474
$result.errFile = New-TemporaryFile
7575

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

7979
$out = New-Object InvokeSentryResult
8080
$out.ServerStdOut = @()

sentry-cli/integration-test/tests/action.Tests.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ Describe 'Invoke-SentryServer' {
4343
$result.UploadedDebugFiles() | Should -Be @('file3.dylib', 'file2.so', 'file1.dll')
4444
}
4545

46+
It "collects proguard mapping" {
47+
$result = Invoke-SentryServer {
48+
Param([string]$url)
49+
Invoke-WebRequest -Uri "$url/api/0/projects/org/project/files/dsyms/associate/" -Method Post `
50+
}
51+
Should -ActualValue $result.HasErrors() -BeFalse
52+
}
53+
4654
It "collects envelopes" {
4755
$result = Invoke-SentryServer {
4856
Param([string]$url)

0 commit comments

Comments
 (0)