@@ -109,6 +109,7 @@ jobs:
109
109
echo "Running tests for: $line";
110
110
pipenv run python -m l10n_CM.run_l10n --fx-executable="$FX_EXECUTABLE" $line || SCRIPT_EXIT_CODE=$?;
111
111
done < selected_l10n_mappings;
112
+ ls artifacts-mac/* &>/dev/null || echo "No mappings to report" >> artifacts-mac/placeholder.txt
112
113
mv -n artifacts/* artifacts-mac/ || true;
113
114
EXIT_CODE=$(cat TEST_EXIT_CODE);
114
115
if [ $EXIT_CODE != 0 ]; then
@@ -191,6 +192,7 @@ jobs:
191
192
echo "Running tests for: $line";
192
193
DISPLAY=:99 pipenv run python -m l10n_CM.run_l10n --fx-executable="$FX_EXECUTABLE" $line || SCRIPT_EXIT_CODE=$?;
193
194
done < selected_l10n_mappings;
195
+ ls artifacts-linux/* &>/dev/null || echo "No mappings to report" >> artifacts-linux/placeholder.txt
194
196
mv -n artifacts/* artifacts-linux/ || true;
195
197
EXIT_CODE=$(cat TEST_EXIT_CODE);
196
198
if [ $EXIT_CODE != 0 ]; then
@@ -317,8 +319,8 @@ jobs:
317
319
$SCRIPT_EXIT_CODE = $_.Exception.HResult
318
320
}
319
321
}
320
- rm artifacts/assets -r -Force
321
- Get-ChildItem -Path "artifacts" | ForEach-Object {
322
+ rm artifacts/assets -r -Force -ErrorAction SilentlyContinue
323
+ Get-ChildItem -Path "artifacts" -ErrorAction SilentlyContinue | ForEach-Object {
322
324
$destPath = "artifacts-win\" + $_.Name
323
325
if (-not (Test-Path -Path $destPath)) {
324
326
try {
@@ -328,6 +330,10 @@ jobs:
328
330
}
329
331
}
330
332
}
333
+ mkdir artifacts-win -Force
334
+ if (-not (Test-Path -Path "artifacts-win\*")) {
335
+ New-Item -Path "artifacts-win\placeholder.txt" -ItemType File -Value "no mappings to report."
336
+ }
331
337
$EXIT_CODE = Get-Content -Path "TEST_EXIT_CODE"
332
338
if ($EXIT_CODE -ne 0) {
333
339
exit [int]$EXIT_CODE
@@ -363,7 +369,7 @@ jobs:
363
369
with :
364
370
name : artifacts-win
365
371
path : artifacts-win
366
- - name : Download Windows artifact
372
+ - name : Download Linux artifact
367
373
uses : actions/download-artifact@v4
368
374
with :
369
375
name : artifacts-linux
0 commit comments