Skip to content

Commit e9cecad

Browse files
committed
log files corrections
1 parent ef37bd5 commit e9cecad

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.github/workflows/test-scripts.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v4
23-
23+
- name: Set up Python 3.13
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.13'
2427
- name: Set up Bash
2528
run: |
2629
echo "Bash version:"
@@ -166,7 +169,10 @@ jobs:
166169
steps:
167170
- name: Checkout code
168171
uses: actions/checkout@v4
169-
172+
- name: Set up Python 3.13
173+
uses: actions/setup-python@v5
174+
with:
175+
python-version: '3.13'
170176
- name: Check PowerShell version
171177
run: |
172178
$PSVersionTable.PSVersion
@@ -306,7 +312,10 @@ jobs:
306312
steps:
307313
- name: Checkout code
308314
uses: actions/checkout@v4
309-
315+
- name: Set up Python 3.13
316+
uses: actions/setup-python@v5
317+
with:
318+
python-version: '3.13'
310319
- name: Set up Bash
311320
run: |
312321
echo "Bash version:"
@@ -430,7 +439,7 @@ jobs:
430439
with:
431440
name: browserstack-logs-linux
432441
path: |
433-
~/.browserstack/NOW/logs/
442+
$HOME/.browserstack/NOW/logs/
434443
/tmp/run_test_*.log
435444
retention-days: 30
436445
if-no-files-found: ignore

mac/env-setup-run.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ platforms:
9494
$platform_yaml
9595
EOF
9696

97-
export BSTACK_PARALLELS=$parallels # to be picked up from ENV in repo
97+
export BSTACK_PARALLELS=$parallels
9898
export BSTACK_PLATFORMS=$platform_yaml
99-
export BROWSERSTACK_LOCAL=$local_flag # to be picked up from ENV in repo
99+
export BROWSERSTACK_LOCAL=$local_flag
100100

101101
# === 6️⃣ Build and Run ===
102102
log_msg_to "⚙️ Running 'mvn install -DskipTests'"
@@ -156,6 +156,7 @@ EOF
156156

157157
export BSTACK_PARALLELS=$parallels
158158
export BROWSERSTACK_LOCAL=true
159+
export BSTACK_PLATFORMS=$platform_yaml
159160

160161

161162
# Run Maven install first
@@ -204,7 +205,7 @@ setup_web_python() {
204205
# Update YAML at root level (browserstack.yml)
205206
export BROWSERSTACK_CONFIG_FILE="./src/conf/browserstack_parallel.yml"
206207
platform_yaml=$(generate_web_platforms "$TEAM_PARALLELS_MAX_ALLOWED_WEB" "yaml")
207-
208+
export BSTACK_PLATFORMS=$platform_yaml
208209
cat >> "$BROWSERSTACK_CONFIG_FILE" <<EOF
209210
210211
platforms:
@@ -217,6 +218,7 @@ EOF
217218

218219
export BSTACK_PARALLELS=1
219220
export BROWSERSTACK_LOCAL=$local_flag
221+
export BSTACK_PLATFORMS=$platform_yaml
220222

221223
report_bstack_local_status "$local_flag"
222224

@@ -281,6 +283,7 @@ EOF
281283
run_dir="ios"
282284
fi
283285

286+
export BSTACK_PLATFORMS=$platform_yaml
284287
export BROWSERSTACK_LOCAL=true
285288

286289
log_section "Validate Environment Variables"

mac/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ log_file=""
3030
if [[ "$RUN_MODE" == *"--silent"* || "$RUN_MODE" == *"--debug"* ]]; then
3131
TEST_TYPE=$TT
3232
TECH_STACK=$TSTACK
33-
log_file="$LOG_DIR/${TEST_TYPE:unknown}_run_result.log"
33+
log_file="$LOG_DIR/${TEST_TYPE:unknown}_${TECH_STACK:unknown}_run_result.log"
3434
log_info "Run Mode: ${RUN_MODE:-default}"
3535
else
3636
get_test_type $RUN_MODE
3737
get_tech_stack $RUN_MODE
38-
log_file="$LOG_DIR/${TEST_TYPE:unknown}_run_result.log"
38+
log_file="$LOG_DIR/${TEST_TYPE:unknown}_${TECH_STACK:unknown}_run_result.log"
3939
perform_next_steps_based_on_test_type $TEST_TYPE
4040
fi
4141

0 commit comments

Comments
 (0)