Problem
HealthTest-DfsDiagTestDCs removes a short list of expected English lines from DFSDIAG /TestDCs output. Anything left is treated as failure.
File: health-tests/HealthTest-DfsDiagTestDCs.ps1, lines 13-19.
Normal output is translated on non-English Windows, so successful diagnostics can be reported as failed. The command exit code is also ignored.
Simple example
DFSDIAG succeeds on Greek Windows. Its translated lines do not start with the English words in the filter, so they remain in $out and the test reports FAILURE.
Expected behavior
Use the command exit code and language-independent result data. Treat unfamiliar output as unknown rather than automatically good or bad.
Acceptance criteria
- Successful localized output does not produce FAILURE.
- A nonzero command result cannot produce PASS.
- Unrecognized output is reported clearly.
- Unit tests cover English, non-English, and command-failure output.
Problem
HealthTest-DfsDiagTestDCsremoves a short list of expected English lines fromDFSDIAG /TestDCsoutput. Anything left is treated as failure.File:
health-tests/HealthTest-DfsDiagTestDCs.ps1, lines 13-19.Normal output is translated on non-English Windows, so successful diagnostics can be reported as failed. The command exit code is also ignored.
Simple example
DFSDIAG succeeds on Greek Windows. Its translated lines do not start with the English words in the filter, so they remain in
$outand the test reports FAILURE.Expected behavior
Use the command exit code and language-independent result data. Treat unfamiliar output as unknown rather than automatically good or bad.
Acceptance criteria