Skip to content

Commit 838842d

Browse files
[azservicebus/azeventhubs] Redirect stderr and stdout to tee (Azure#20726)
1 parent 03f0ac3 commit 838842d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sdk/messaging/azeventhubs/internal/eh/stress/deploy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function deployUsingLocalAddons() {
99
$helmEnv = "pg2"
1010

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

sdk/messaging/azeventhubs/internal/eh/stress/templates/stress-test-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
- >
2323
set -ex;
2424
mkdir -p "$DEBUG_SHARE";
25-
/app/stress "{{.Stress.testTarget}}" "-rounds" "{{.Stress.rounds}}" "-prefetch" "{{.Stress.prefetch}}" "{{.Stress.verbose}}" "-sleepAfter" "{{.Stress.sleepAfter}}" | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
25+
/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";
2626
# Pulls the image on pod start, always. We tend to push to the same image and tag over and over again
2727
# when iterating, so this is a must.
2828
imagePullPolicy: Always

sdk/messaging/azservicebus/internal/stress/deploy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function deployUsingLocalAddons() {
88
$helmEnv = "pg2"
99

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

sdk/messaging/azservicebus/internal/stress/templates/stress-test-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
- >
1818
set -ex;
1919
mkdir -p "$DEBUG_SHARE";
20-
/app/stress tests "{{ .Stress.testTarget }}" | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
20+
/app/stress tests "{{ .Stress.testTarget }}" 2>&1 | tee -a "${DEBUG_SHARE}/{{ .Stress.Scenario }}-`date +%s`.log";
2121
# Pulls the image on pod start, always. We tend to push to the same image and tag over and over again
2222
# when iterating, so this is a must.
2323
imagePullPolicy: Always

0 commit comments

Comments
 (0)