mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-19 07:54:38 +00:00
test(installer): fix fake Windows curl output parsing
This commit is contained in:
parent
994f2f4937
commit
ba695a8a6c
1 changed files with 5 additions and 3 deletions
|
|
@ -407,6 +407,8 @@ describe('installation scripts', () => {
|
|||
expect(readScript(fakeCurl)).toContain(
|
||||
'/releases/qwen-code/latest/VERSION',
|
||||
);
|
||||
expect(readScript(fakeCurl)).toContain('set "destination=%~2"');
|
||||
expect(readScript(fakeCurl)).not.toContain('set "destination=%~1"');
|
||||
} finally {
|
||||
rmSync(tmpDir, { recursive: true, force: true });
|
||||
}
|
||||
|
|
@ -3318,20 +3320,20 @@ function createFakeWindowsCurlCommand(fakeBin) {
|
|||
'set "arg=%~1"',
|
||||
'if "!arg:~0,1!"=="-" (',
|
||||
' if /i "!arg!"=="-o" (',
|
||||
' set "destination=%~2"',
|
||||
' shift',
|
||||
' set "destination=%~1"',
|
||||
' shift',
|
||||
' goto parse_args',
|
||||
' )',
|
||||
' if /i "!arg!"=="--output" (',
|
||||
' set "destination=%~2"',
|
||||
' shift',
|
||||
' set "destination=%~1"',
|
||||
' shift',
|
||||
' goto parse_args',
|
||||
' )',
|
||||
' if not "!arg:~0,2!"=="--" if /i "!arg:~-1!"=="o" (',
|
||||
' set "destination=%~2"',
|
||||
' shift',
|
||||
' set "destination=%~1"',
|
||||
' shift',
|
||||
' goto parse_args',
|
||||
' )',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue