mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-10-19 12:43:39 +00:00
test(e2e): mount the fixture root into the container sandbox for workflow ancestor discovery (#14589) (#14593)
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: 易良 <1204183885@qq.com>
This commit is contained in:
parent
86ba7ba8b4
commit
0c97e14305
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
import {
|
||||
applyContainerSandboxNoProxy,
|
||||
fakeServerHostOptions,
|
||||
IS_CONTAINER_SANDBOX,
|
||||
TestRig,
|
||||
} from '../test-helper.js';
|
||||
|
||||
|
|
@ -179,6 +180,11 @@ describe('headless local workflow ancestor discovery', () => {
|
|||
vi.stubEnv('QWEN_RUNTIME_DIR', join(fixtureRoot, '.runtime'));
|
||||
vi.stubEnv('QWEN_CODE_TRUSTED_FOLDERS_PATH', trustPath);
|
||||
vi.stubEnv('QWEN_CODE_DISABLE_WORKFLOWS', '0');
|
||||
if (IS_CONTAINER_SANDBOX) {
|
||||
// The container bind-mounts only the workdir (packages/a); the trusted
|
||||
// ancestors under test sit above it, so mount the fixture root too.
|
||||
vi.stubEnv('SANDBOX_MOUNTS', fixtureRoot);
|
||||
}
|
||||
rig.testDir = target;
|
||||
await rig.run(
|
||||
'Run the shared workflow with the probe argument.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue