From 34c4bbe45d931175df3370d8a773dccdb0d02df3 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Sat, 25 May 2024 10:41:25 +0200 Subject: [PATCH] tmp dir --- testrunner/src/testrunners/docker-testrunner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testrunner/src/testrunners/docker-testrunner.js b/testrunner/src/testrunners/docker-testrunner.js index f94fdf6..61e85f0 100644 --- a/testrunner/src/testrunners/docker-testrunner.js +++ b/testrunner/src/testrunners/docker-testrunner.js @@ -1,5 +1,6 @@ import { writeFile, readFile, mkdir, rm } from 'node:fs/promises'; import path from 'node:path'; +import os from 'node:os'; import { execa } from 'execa'; import log from 'intel'; @@ -10,7 +11,7 @@ import { queueHandler } from '../queue/queuehandler.js'; const { join } = path; export default async function runJob(job) { - const baseWorkingDirectory = nconf.get('workingDirectory'); + const baseWorkingDirectory = nconf.get('workingDirectory') || os.tmpdir(); const dockerContainer = nconf.get('docker:container'); const logger = log.getLogger(`sitespeedio.dockertestrunner.${job.id}`);