mirror of
https://github.com/microsoft/WSL.git
synced 2026-04-28 09:10:09 -05:00
Add E2E test for --version flag (#40125)
* Add E2E test for --version flag Ensures both entry points (the 'version' subcommand and the '--version' flag) are covered by E2E tests, preventing the two paths from drifting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix newline --------- Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -56,6 +56,13 @@ class WSLCE2EGlobalTests
|
||||
WSL2_TEST_ONLY();
|
||||
RunWslcAndVerify(L"version", {.Stdout = GetVersionMessage(), .Stderr = L"", .ExitCode = 0});
|
||||
}
|
||||
|
||||
TEST_METHOD(WSLCE2E_VersionFlag)
|
||||
{
|
||||
WSL2_TEST_ONLY();
|
||||
RunWslcAndVerify(L"--version", {.Stdout = GetVersionMessage(), .Stderr = L"", .ExitCode = 0});
|
||||
}
|
||||
|
||||
TEST_METHOD(WSLCE2E_Session_DefaultElevated)
|
||||
{
|
||||
WSL2_TEST_ONLY();
|
||||
|
||||
Reference in New Issue
Block a user