fix(ci): make Windows fixtures portable
This commit is contained in:
parent
5ba9e50bb0
commit
975bf864ef
2 changed files with 3 additions and 4 deletions
|
|
@ -385,9 +385,7 @@ describe('real @openai/codex 0.147.0 product', () => {
|
|||
|
||||
it('executes an explicitly selected dangerous bypass write in the isolated workspace', async () => {
|
||||
const sideEffect = 'bypass-side-effect'
|
||||
const command = process.platform === 'win32'
|
||||
? `cmd /c echo bypass>${sideEffect}`
|
||||
: `printf bypass > ${sideEffect}`
|
||||
const command = `echo bypass>${sideEffect}`
|
||||
const commandCalls = [
|
||||
{
|
||||
name: 'exec_command',
|
||||
|
|
|
|||
|
|
@ -294,11 +294,12 @@ function validateAppResolution(): string[] {
|
|||
/**
|
||||
* Discover workspace Bundle packages from their manifest declaration.
|
||||
* @param repoRoot Repository root to scan.
|
||||
* @returns Sorted repository-relative package manifest paths.
|
||||
* @returns Sorted slash-normalized repository-relative package manifest paths.
|
||||
*/
|
||||
export function bundleManifestPaths(repoRoot: string = root): string[] {
|
||||
return globSync('packages/*/*/package.json', { cwd: repoRoot })
|
||||
.filter(path => typeof readManifest(path, repoRoot).dsh?.bundle?.patch === 'string')
|
||||
.map(path => path.replaceAll('\\', '/'))
|
||||
.sort()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue