Add Pixel 4a to Android render test run (#3455)

This commit is contained in:
Bart Louwers
2025-05-09 15:33:46 +02:00
committed by GitHub
parent 92cf551ec1
commit c4908e4df2
2 changed files with 9 additions and 6 deletions

View File

@@ -2,7 +2,6 @@ import * as fs from "node:fs";
import { Readable } from "node:stream";
import { finished } from "node:stream/promises";
import * as path from "node:path";
import * as crypto from "node:crypto";
import { parseArgs } from "node:util";
import { ArtifactType, ListArtifactsCommand, ListJobsCommand, ListSuitesCommand } from "@aws-sdk/client-device-farm";
@@ -104,7 +103,8 @@ async function storeRunArtifacts(arnArr, outputDir) {
if (!artifact.name || !artifact.url || !artifact.type) return;
if (artifactsToDownload.includes(artifact.type)) {
if (!artifact.arn) return;
const destination = path.join(outputDir, `${Buffer.from(artifact.arn).toString('base64')}.${artifact.extension}`);
const destination = path.join(outputDir, ...[job.device?.name || ""].filter(x => x), `${Buffer.from(artifact.arn).toString('base64')}.${artifact.extension}`);
await fs.promises.mkdir(path.dirname(destination), { recursive: true });
try {
await fs.promises.access(destination);
return; // already exists