易良 and yiliang114
7f774219ae
test(opentui): run the Windows preview installer suite through cmd.exe ( #16028 )
...
* test(opentui): launch the Windows preview entry through cmd.exe
The PowerShell preview installer preservation suite failed on every
nightly Windows run: the seeded qwen.cmd launcher printed nothing, and
the leftover batch child kept the file locked so teardown hit EBUSY.
PowerShell was only a way to run a .cmd from Node. Its `&` call plus
`exit $LASTEXITCODE` returned before the batch child wrote anything, so
run the entry through cmd.exe instead (`shell: true`).
PowerShell also writes its own startup cache under
%LOCALAPPDATA%\Microsoft\Windows\PowerShell. The fixture pointed
USERPROFILE at the home tree the assertions treat as installer-owned, so
every successful test failed on that cache. Point APPDATA and
LOCALAPPDATA outside the compared home.
* test(opentui): compare home files, not shell-created folders
With the launcher fixed, every case in the suite now reaches the
preservation assertion and fails on Windows because PowerShell creates
its own empty %USERPROFILE%\AppData folder shells on first run. Those
are the shell's account directories, not installer output.
Redirect APPDATA/LOCALAPPDATA outside the fixture home (so the startup
cache file stays out too) and compare only the home's file contents.
---------
Co-authored-by: yiliang114 <[email protected] >
2026-11-01 10:53:33 +00:00
..
2026-08-22 12:39:08 +00:00
2026-10-25 13:58:22 +08:00
2026-10-30 11:27:38 +00:00
2026-10-30 11:27:38 +00:00
2026-08-05 12:14:42 +00:00
2026-09-25 05:41:25 +00:00
2026-10-21 14:03:31 +08:00
2026-09-01 17:41:00 +00:00
2026-09-02 11:38:33 +00:00
2026-08-11 05:47:39 +00:00
2026-08-29 13:22:34 +00:00
2026-10-16 00:28:58 +00:00
2026-10-10 05:43:18 +00:00
2026-09-06 11:21:50 +00:00
2026-10-30 14:56:35 +00:00
2026-10-16 00:28:58 +00:00
2026-10-30 14:56:35 +00:00
2026-07-11 00:07:03 +00:00
2026-09-20 02:11:25 +00:00
2026-10-16 17:34:52 +00:00
2026-06-29 11:54:11 +00:00
2026-08-16 03:27:00 +00:00
2026-09-03 03:21:03 +00:00
2026-10-31 16:35:58 +08:00
2026-07-10 06:39:52 +00:00
2026-10-30 23:54:26 +08:00
2026-10-26 01:10:18 +00:00
2026-10-16 00:28:58 +00:00
2026-08-04 03:48:24 +00:00
2026-10-26 12:31:13 +00:00
2026-09-10 03:33:27 +00:00
2026-09-20 09:10:36 +00:00
2026-09-22 05:28:28 +00:00
2026-09-22 05:28:28 +00:00
2026-09-10 03:13:05 +00:00
2026-10-21 14:03:31 +08:00
2026-10-15 19:42:08 +08:00
2026-10-13 16:14:52 +00:00
2026-10-16 19:38:32 +08:00
2026-10-21 14:03:31 +08:00
2026-10-30 11:27:38 +00:00
2026-09-08 15:45:07 +00:00
2026-10-31 15:49:57 +08:00
2026-08-26 07:11:15 +00:00
2026-10-30 14:56:35 +00:00
2026-10-30 14:56:35 +00:00
2026-09-05 23:40:57 +00:00
2026-09-10 06:33:33 +00:00
2026-09-10 07:15:32 +00:00
2026-08-17 00:12:04 +00:00
2026-10-31 03:23:30 +08:00
2026-10-25 13:58:22 +08:00
2026-10-21 11:52:03 +08:00
2026-05-05 19:25:00 +08:00
2026-10-02 06:49:12 +00:00
2026-11-01 02:25:44 +08:00
2026-10-27 11:54:25 +08:00
2026-10-30 18:24:19 +08:00
2026-09-06 11:21:50 +00:00
2026-08-31 01:20:35 +00:00
2026-10-08 09:09:39 +00:00
2026-08-03 10:20:42 +00:00
2026-09-23 02:54:57 +00:00
2026-09-29 03:45:46 +00:00
2026-10-26 19:42:06 +08:00
2026-10-31 13:43:34 +00:00
2026-09-20 02:11:25 +00:00
2026-10-30 18:24:19 +08:00
2026-10-30 18:24:19 +08:00
2026-10-30 14:56:35 +00:00
2026-10-20 20:07:49 +08:00
2026-11-01 06:57:12 +00:00
2026-10-29 15:18:46 +00:00
2026-10-26 02:03:14 +00:00
2026-10-25 20:48:38 +08:00
2026-10-25 20:48:38 +08:00
2026-10-22 16:25:18 +00:00
2026-10-30 14:56:35 +00:00
2026-10-30 14:56:35 +00:00
2026-10-26 12:50:01 +08:00
2026-10-03 12:02:48 +00:00
2026-10-31 13:42:54 +00:00
2026-08-27 12:28:08 +00:00
2026-08-27 12:28:08 +00:00
2026-09-14 04:49:03 +00:00
2026-09-06 11:21:50 +00:00
2026-09-06 11:21:50 +00:00
2026-08-23 14:41:49 +00:00
2026-08-23 14:41:49 +00:00
2026-10-25 11:50:17 +08:00
2026-11-01 10:53:33 +00:00
2026-10-23 10:27:53 +08:00
2026-10-31 03:23:30 +08:00
2026-10-31 20:51:11 +08:00
2026-07-03 07:40:07 +00:00
2026-08-15 17:32:23 +00:00
2026-10-30 11:27:38 +00:00
2026-08-22 18:47:00 +00:00
2026-10-30 19:42:46 +08:00
2026-10-28 18:58:31 +00:00
2026-10-31 13:43:34 +00:00
2026-09-20 02:11:25 +00:00
2026-09-06 05:51:06 +00:00
2026-10-28 11:51:45 +00:00
2026-10-17 21:17:23 +08:00
2026-11-01 07:55:09 +00:00
2026-10-27 11:13:32 +08:00
2026-10-30 01:08:54 +08:00
2026-05-05 10:15:17 +08:00
2026-09-09 12:59:56 +00:00
2026-10-21 14:03:31 +08:00
2026-10-31 20:51:11 +08:00
2026-08-31 07:37:15 +00:00
2026-10-16 17:34:52 +00:00
2026-10-31 16:35:58 +08:00
2026-10-21 00:53:58 +08:00
2026-10-25 15:47:18 +08:00
2026-10-03 12:02:48 +00:00
2026-09-20 23:41:24 +00:00
2026-10-03 12:02:48 +00:00
2026-10-22 17:36:15 +08:00
2026-10-31 18:31:00 +08:00
2026-08-21 07:43:32 +00:00
2026-10-30 01:08:54 +08:00
2026-09-25 05:41:25 +00:00
2026-09-20 02:11:25 +00:00
2026-10-16 17:34:52 +00:00
2026-09-16 07:24:11 +00:00
2026-10-24 17:21:55 +08:00
2026-10-21 14:39:26 +00:00
2026-08-29 13:22:34 +00:00
2026-09-25 10:13:38 +00:00
2026-10-03 12:02:48 +00:00
2026-08-26 07:11:15 +00:00
2026-09-06 11:21:50 +00:00
2026-09-10 07:15:32 +00:00
2026-10-31 17:50:28 +08:00
2026-09-05 01:08:43 +00:00
2026-09-02 12:21:31 +00:00
2026-09-06 08:46:27 +00:00
2026-11-01 07:55:09 +00:00
2026-10-28 11:57:28 +00:00
2026-10-30 22:50:30 +08:00
2026-10-24 17:49:17 +08:00
2026-08-18 13:19:09 +00:00
2026-10-14 06:50:19 +00:00
2026-08-29 16:37:47 +00:00
2026-10-16 16:45:56 +08:00
2026-09-13 09:50:26 +00:00
2026-08-05 12:14:42 +00:00
2026-10-10 09:07:05 +00:00
2026-10-25 10:05:56 +00:00