mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
tests: fix e2e tests (#5706)
This commit is contained in:
@@ -169,13 +169,13 @@ export class TestRig {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (typeof promptOrOptions === 'string') {
|
if (typeof promptOrOptions === 'string') {
|
||||||
command += ` --prompt "${promptOrOptions}"`;
|
command += ` --prompt ${JSON.stringify(promptOrOptions)}`;
|
||||||
} else if (
|
} else if (
|
||||||
typeof promptOrOptions === 'object' &&
|
typeof promptOrOptions === 'object' &&
|
||||||
promptOrOptions !== null
|
promptOrOptions !== null
|
||||||
) {
|
) {
|
||||||
if (promptOrOptions.prompt) {
|
if (promptOrOptions.prompt) {
|
||||||
command += ` --prompt "${promptOrOptions.prompt}"`;
|
command += ` --prompt ${JSON.stringify(promptOrOptions.prompt)}`;
|
||||||
}
|
}
|
||||||
if (promptOrOptions.stdin) {
|
if (promptOrOptions.stdin) {
|
||||||
execOptions.input = promptOrOptions.stdin;
|
execOptions.input = promptOrOptions.stdin;
|
||||||
|
|||||||
Reference in New Issue
Block a user