Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@
"--disable-extensions"
],
"env": {
"TSX_TSCONFIG_PATH": "${workspaceFolder}/tsconfig.json"
"TSX_TSCONFIG_PATH": "${workspaceFolder}/tsconfig.json",
"CORETEST": "true"
},
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
Expand Down
2 changes: 1 addition & 1 deletion test/base/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
const compress = promisify(zlib.brotliCompress);
const decompress = promisify(zlib.brotliDecompress);

const DefaultCachePath = process.env.VITEST ? path.resolve(__dirname, '..', 'simulation', 'cache') : path.resolve(__dirname, '..', 'test', 'simulation', 'cache');
const DefaultCachePath = (process.env.VITEST ?? process.env.CORETEST) ? path.resolve(__dirname, '..', 'simulation', 'cache') : path.resolve(__dirname, '..', 'test', 'simulation', 'cache');

async function getGitRoot(cwd: string): Promise<string> {
const execAsync = promisify(exec);
Expand Down Expand Up @@ -244,7 +244,7 @@
// Check git for an uncommitted layer database file
try {
const gitRoot = await getGitRoot(activeLayerPath);
const { stdout: statusStdout } = await execAsync(`git status -z ${gitStatusPath}`, { cwd: gitRoot });

Check warning

Code scanning / CodeQL

Shell command built from environment values Medium test

This shell command depends on an uncontrolled
absolute path
.
This shell command depends on an uncontrolled
absolute path
.
if (statusStdout !== '') {
const layerDatabaseEntries = statusStdout.split('\0').filter(entry => entry.endsWith('.sqlite'));
if (layerDatabaseEntries.length > 0) {
Expand Down
Loading