Skip to content

Commit

Permalink
[azservicebus/azeventhubs] Redirect stderr and stdout to tee (#20726)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpark-msft authored May 3, 2023
1 parent 03f0ac3 commit 838842d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/messaging/azeventhubs/internal/eh/stress/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function deployUsingLocalAddons() {
$helmEnv = "pg2"

if (-not (Get-ChildItem $stressTestAddonsFolder)) {
Write-Host "Can't find the the new stress test adons folder at $stressTestAddonsFolder"
Write-Host "Can't find the the new stress test addons folder at $stressTestAddonsFolder"
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- >
set -ex;
mkdir -p "$DEBUG_SHARE";
/app/stress "{{.Stress.testTarget}}" "-rounds" "{{.Stress.rounds}}" "-prefetch" "{{.Stress.prefetch}}" "{{.Stress.verbose}}" "-sleepAfter" "{{.Stress.sleepAfter}}" | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
/app/stress "{{.Stress.testTarget}}" "-rounds" "{{.Stress.rounds}}" "-prefetch" "{{.Stress.prefetch}}" "{{.Stress.verbose}}" "-sleepAfter" "{{.Stress.sleepAfter}}" 2>&1 | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
# Pulls the image on pod start, always. We tend to push to the same image and tag over and over again
# when iterating, so this is a must.
imagePullPolicy: Always
Expand Down
2 changes: 1 addition & 1 deletion sdk/messaging/azservicebus/internal/stress/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function deployUsingLocalAddons() {
$helmEnv = "pg2"

if (-not (Get-ChildItem $stressTestAddonsFolder)) {
Write-Host "Can't find the the new stress test adons folder at $stressTestAddonsFolder"
Write-Host "Can't find the the new stress test addons folder at $stressTestAddonsFolder"
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- >
set -ex;
mkdir -p "$DEBUG_SHARE";
/app/stress tests "{{ .Stress.testTarget }}" | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
/app/stress tests "{{ .Stress.testTarget }}" 2>&1 | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
# Pulls the image on pod start, always. We tend to push to the same image and tag over and over again
# when iterating, so this is a must.
imagePullPolicy: Always
Expand Down

0 comments on commit 838842d

Please sign in to comment.