From 10008351d06a2a28785599bc660c14087d603863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Wed, 2 Aug 2023 23:29:48 +0200 Subject: [PATCH] Move results to a new location (for artifacts exportation) --- ExerciceChecker/src/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ExerciceChecker/src/app.ts b/ExerciceChecker/src/app.ts index a740445..5341b74 100644 --- a/ExerciceChecker/src/app.ts +++ b/ExerciceChecker/src/app.ts @@ -7,7 +7,7 @@ require('./shared/helpers/TypeScriptExtensions'); // ATTENTION : This line MUST import ExerciceCheckerError from './types/ExerciceCheckerError'; import { exec, spawn } from 'child_process'; import util from 'util'; -import * as fs from 'fs'; +import fs from 'fs-extra'; import chalk from 'chalk'; import HttpManager from './managers/HttpManager'; import DojoBackendManager from './managers/DojoBackendManager'; @@ -100,6 +100,8 @@ import Config from './config/Config'; // Step 8: Exit with container exit code + fs.moveSync(Config.folders.resultsVolume, Config.folders.artifacts, { overwrite: true }); + process.exit(containerExitStatus[0]); })(); -- GitLab