| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5262707 commit 8c497a6
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,24 @@ | |||
| 1 | + import { isWindows } from '../common/index.mjs'; | ||
| 2 | + import { spawn } from 'node:child_process'; | ||
| 3 | + import { once } from 'node:events'; | ||
| 4 | + import { fileURLToPath } from 'node:url'; | ||
| 5 | + import { strictEqual } from 'node:assert'; | ||
| 6 | + | ||
| 7 | + const python = process.env.PYTHON || (isWindows ? 'python' : 'python3'); | ||
| 8 | + | ||
| 9 | + const testRunner = fileURLToPath( | ||
| 10 | + new URL('../../tools/test.py', import.meta.url) | ||
| 11 | + ); | ||
| 12 | + | ||
| 13 | + const proc = spawn(python, [ | ||
| 14 | + testRunner, | ||
| 15 | + `--mode=${process.features.debug ? 'debug' : 'release'}`, | ||
| 16 | + `--shell=${process.execPath}`, | ||
| 17 | + '--node-args=--no-async-context-frame', | ||
| 18 | + '*/test-async-local-storage-*', | ||
| 19 | + ], { | ||
| 20 | + stdio: ['inherit', 'inherit', 'inherit'], | ||
| 21 | + }); | ||
| 22 | + | ||
| 23 | + const [code] = await once(proc, 'exit'); | ||
| 24 | + strictEqual(code, 0); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments