Fix mock test path prefix

This commit is contained in:
Fedor Indutny 2023-08-01 18:39:07 +02:00 committed by GitHub
parent 40c21b1666
commit 3fa6185d39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@ export class Bootstrap {
await fs.mkdir(ARTIFACTS_DIR, { recursive: true });
const normalizedPrefix = pathPrefix
? `-${normalizePath(pathPrefix.replace(/[ /]/g, '-'))}-`
? `-${normalizePath(pathPrefix.replace(/[^a-z]+/gi, '-'))}-`
: '';
const outDir = await fs.mkdtemp(
path.join(ARTIFACTS_DIR, `logs-${normalizedPrefix}`)