mxc icon indicating copy to clipboard operation
mxc copied to clipboard

[IsolationSession] `Run-IsolationSessionTest` searches for an agent-name line that is no longer printed

Open adpa-ms opened this issue 2 weeks ago • 1 comments

Description of the task

Run-IsolationSessionTest in tests/scripts/run_isolation_session_tests.ps1 searches wxc-exec's output for Isolation Session: agent user = <name> and prints the name when it finds one. Two of its comments rely on that line: one gives it as the reason the test passes --debug, and the other says the name ties a leftover local account to its test. Since #1390, wxc-exec prints Isolation Session: agent user provisioned instead, without a name, so the search never matches and both comments are out of date. No test result depends on it.

Expected outcome: Run-IsolationSessionTest and its comments match what wxc-exec prints.

adpa-ms avatar Nov 17 '26 00:11 adpa-ms

[AgentAssisted] A possible fix: remove the search and keep --debug, rewording its comment. --debug still puts wxc-exec's own lines in the test's output, such as its request summary, any teardown warning, and its Runner completed and Exit code lines.

adpa-ms avatar Nov 17 '26 00:11 adpa-ms