Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[azservicebus/azeventhubs] Redirect stderr and stdout to tee #20726

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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