From 87be7231d20f27cb8db54cb3841f5c6b40065fec Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Tue, 5 Dec 2023 15:26:08 +0100 Subject: [PATCH] Tests fix attempt --- tests/test/test_export.js | 2 ++ tests/test/utils.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test/test_export.js b/tests/test/test_export.js index 83a8b916..2904252d 100644 --- a/tests/test/test_export.js +++ b/tests/test/test_export.js @@ -4,6 +4,8 @@ const path = require('path'); const OUT_PREFIX = process.env.OUT_PREFIX || '../tests_out'; process.env['BLENDER_USER_SCRIPTS'] = path.join(process.cwd(), '..'); +console.log("AAA: " + path.join(process.cwd(), '..')); +console.log("BBB: " + path.join(process.env, '..')); const blenderVersions = (() => { if (process.platform == 'darwin') { diff --git a/tests/test/utils.js b/tests/test/utils.js index b92e3ffb..df4de953 100644 --- a/tests/test/utils.js +++ b/tests/test/utils.js @@ -6,7 +6,7 @@ const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12 function blenderFileToGltf(blenderVersion, blenderPath, outDirName, done, options = '') { const { exec } = require('child_process'); - const cmd = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`; + const cmd = `${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`; var prc = exec(cmd, (error, stdout, stderr) => { //if (stderr) process.stderr.write(stderr); @@ -21,7 +21,7 @@ function blenderFileToGltf(blenderVersion, blenderPath, outDirName, done, option function blenderRoundtripGltf(blenderVersion, gltfPath, outDirName, done, options = '') { const { exec } = require('child_process'); - const cmd = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`; + const cmd = `${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`; var prc = exec(cmd, (error, stdout, stderr) => { //if (stderr) process.stderr.write(stderr);