mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-24 19:43:35 +00:00
[js] Bug fix - permission issue with ensureSymlinkSync (#12369)
using ensureSymlinkSync might have issues with permissions when using 'dir' - changed to 'junction' to avoid this. If the folder generation fails it will cause the test to fails as well.
This commit is contained in:
parent
b39257a5e6
commit
ca6b4221fe
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ const TEST_DATA_OP_ROOT = path.join(TEST_ROOT, 'data', 'ops');
|
|||
const TEST_DATA_BASE = args.env === 'node' ? TEST_ROOT : '/base/test/';
|
||||
|
||||
npmlog.verbose('TestRunnerCli.Init', 'Ensure test data folder...');
|
||||
fs.ensureSymlinkSync(path.join(__dirname, '../../test/data/node'), TEST_DATA_MODEL_NODE_ROOT, 'dir');
|
||||
fs.ensureSymlinkSync(path.join(__dirname, '../../test/data/node'), TEST_DATA_MODEL_NODE_ROOT, 'junction');
|
||||
npmlog.verbose('TestRunnerCli.Init', 'Ensure test data folder... DONE');
|
||||
|
||||
let testlist: Test.TestList;
|
||||
|
|
|
|||
Loading…
Reference in a new issue