Skip to content

Commit a5f1c34

Browse files
attempt to separate the output
1 parent 800928e commit a5f1c34

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

maintnotifications/e2e/scripts/run-e2e-tests.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ NC='\033[0m' # No Color
2323

2424
# Logging functions
2525
log_info() {
26-
echo -e "${BLUE}[INFO]${NC} $1"
26+
echo -e "${BLUE}[INFO]${NC} $1" >&2
2727
}
2828

2929
log_success() {
30-
echo -e "${GREEN}[SUCCESS]${NC} $1"
30+
echo -e "${GREEN}[SUCCESS]${NC} $1" >&2
3131
}
3232

3333
log_warning() {
34-
echo -e "${YELLOW}[WARNING]${NC} $1"
34+
echo -e "${YELLOW}[WARNING]${NC} $1" >&2
3535
}
3636

3737
log_error() {
38-
echo -e "${RED}[ERROR]${NC} $1"
38+
echo -e "${RED}[ERROR]${NC} $1" >&2
3939
}
4040

4141
# Help function
@@ -159,15 +159,15 @@ fi
159159

160160
# Show configuration
161161
log_info "Maintenance notifications E2E Tests Configuration:"
162-
echo " Repository Root: $REPO_ROOT"
163-
echo " E2E Directory: $E2E_DIR"
164-
echo " Config Path: $CONFIG_PATH"
165-
echo " Fault Injector URL: $FAULT_INJECTOR_URL"
166-
echo " Test Timeout: $TIMEOUT"
162+
echo " Repository Root: $REPO_ROOT" >&2
163+
echo " E2E Directory: $E2E_DIR" >&2
164+
echo " Config Path: $CONFIG_PATH" >&2
165+
echo " Fault Injector URL: $FAULT_INJECTOR_URL" >&2
166+
echo " Test Timeout: $TIMEOUT" >&2
167167
if [[ -n "$RUN_PATTERN" ]]; then
168-
echo " Test Pattern: $RUN_PATTERN"
168+
echo " Test Pattern: $RUN_PATTERN" >&2
169169
fi
170-
echo ""
170+
echo "" >&2
171171

172172
# Validate fault injector connectivity
173173
log_info "Checking fault injector connectivity..."
@@ -185,11 +185,11 @@ fi
185185
# Show what would be executed in dry-run mode
186186
if [[ "$DRY_RUN" == true ]]; then
187187
log_info "Dry run mode - would execute:"
188-
echo " cd $REPO_ROOT"
189-
echo " export REDIS_ENDPOINTS_CONFIG_PATH=\"$CONFIG_PATH\""
190-
echo " export FAULT_INJECTION_API_URL=\"$FAULT_INJECTOR_URL\""
191-
echo " export E2E_SCENARIO_TESTS=\"true\""
192-
echo " $TEST_CMD"
188+
echo " cd $REPO_ROOT" >&2
189+
echo " export REDIS_ENDPOINTS_CONFIG_PATH=\"$CONFIG_PATH\"" >&2
190+
echo " export FAULT_INJECTION_API_URL=\"$FAULT_INJECTOR_URL\"" >&2
191+
echo " export E2E_SCENARIO_TESTS=\"true\"" >&2
192+
echo " $TEST_CMD" >&2
193193
exit 0
194194
fi
195195

@@ -199,14 +199,14 @@ cd "$REPO_ROOT"
199199
# Run the tests
200200
log_info "Starting E2E tests..."
201201
log_info "Command: $TEST_CMD"
202-
echo ""
202+
echo "" >&2
203203

204204
if eval "$TEST_CMD"; then
205-
echo ""
205+
echo "" >&2
206206
log_success "All E2E tests completed successfully!"
207207
exit 0
208208
else
209-
echo ""
209+
echo "" >&2
210210
log_error "E2E tests failed!"
211211
log_info "Check the test output above for details"
212212
exit 1

0 commit comments

Comments
 (0)