Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/windows/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,8 @@ std::wstring LxssGenerateTestConfig(TestConfigDefaults Default)
return value;
};

// TODO: Reset guiApplications to true by default once the virtio hang is solved.
Comment thread
benhillis marked this conversation as resolved.

std::wstring newConfig =
L"[wsl2]\n"
L"crashDumpFolder=" +
Expand All @@ -1462,7 +1464,7 @@ std::wstring LxssGenerateTestConfig(TestConfigDefaults Default)
EscapePath(kernelLogs) +
L"\n"
L"telemetry=false\n" +
boolOptionToString(L"safeMode", Default.safeMode, false) + boolOptionToString(L"guiApplications", Default.guiApplications, true) +
boolOptionToString(L"safeMode", Default.safeMode, false) + boolOptionToString(L"guiApplications", Default.guiApplications, false) +
Comment thread
benhillis marked this conversation as resolved.
L"earlyBootLogging=false\n" + networkingModeToString(Default.networkingMode) + drvFsModeToString(Default.drvFsMode);

if (Default.kernel.has_value())
Expand Down
3 changes: 3 additions & 0 deletions test/windows/UnitTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ class UnitTests
{
WSL2_TEST_ONLY();

// The X11 socket is only created when gui applications are enabled.
WslConfigChange config(LxssGenerateTestConfig({.guiApplications = true}));

// ensures that we don't leave state on exit
auto cleanup = EnableSystemd("initTimeout=0");

Expand Down