This is an automated email from the ASF dual-hosted git repository.

shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git


The following commit(s) were added to refs/heads/main by this push:
     new ccc4634  Change generated yarn test debugger log file location to temp 
directory and removel logic for removing them.
ccc4634 is described below

commit ccc463412ce4a7cd7caa05b3d91333fe22a93d5d
Author: Jeremy Yao <jeremy....@nteligen.com>
AuthorDate: Tue Jun 10 11:48:29 2025 -0400

    Change generated yarn test debugger log file location to temp directory and 
removel logic for removing them.
    
    Closes #1292
---
 src/tests/suite/daffodilDebugger.test.ts | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/tests/suite/daffodilDebugger.test.ts 
b/src/tests/suite/daffodilDebugger.test.ts
index a757365..3deaee0 100644
--- a/src/tests/suite/daffodilDebugger.test.ts
+++ b/src/tests/suite/daffodilDebugger.test.ts
@@ -19,6 +19,7 @@ import * as vscode from 'vscode'
 import * as assert from 'assert'
 import * as path from 'path'
 import * as fs from 'fs'
+import * as os from 'os'
 import { PROJECT_ROOT, PACKAGE_PATH, TEST_SCHEMA } from './common'
 import { getConfig, killProcess } from '../../utils'
 import { runDebugger, stopDebugging } from '../../daffodilDebugger'
@@ -54,13 +55,13 @@ suite('Daffodil Debugger', () => {
     {
       logging: {
         level: 'INFO',
-        file: 'daffodil-debugger-4711.log',
+        file: path.join(os.tmpdir(), 'yarn-test-daffodil-debugger-4711.log'),
       },
     },
     {
       logging: {
         level: 'INFO',
-        file: 'daffodil-debugger-4712.log',
+        file: path.join(os.tmpdir(), 'yarn-test-daffodil-debugger-4712.log'),
       },
     },
   ]
@@ -97,10 +98,6 @@ suite('Daffodil Debugger', () => {
     // No need to deleted the debugging server because upon re-run, webpack 
cleans and re-extracts it.
     if (fs.existsSync(XML_INFOSET_PATH)) fs.rmSync(XML_INFOSET_PATH)
     if (fs.existsSync(JSON_INFOSET_PATH)) fs.rmSync(JSON_INFOSET_PATH)
-    dfdlDebuggers.forEach((dfdlDebugger) => {
-      if (fs.existsSync(dfdlDebugger.logging.file))
-        fs.rmSync(dfdlDebugger.logging.file)
-    })
   })
 
   test('should output xml infoset', async () => {

Reply via email to