mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
test: improve test logging infra
This commit is contained in:
parent
82e54b12a8
commit
dde8bb1977
@ -103,11 +103,11 @@ int main(int Argc, char* Argv[], char** Envp)
|
||||
|
||||
if (LXT_SUCCESS(Result))
|
||||
{
|
||||
LxtLogPassed("%s", false, LxtTests[Itr].Name);
|
||||
LxtLogPassed("%s", LxtTests[Itr].Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
LxtLogError("%s", false, LxtTests[Itr].Name);
|
||||
LxtLogError("%s", LxtTests[Itr].Name);
|
||||
}
|
||||
|
||||
goto ErrorExit;
|
||||
|
||||
@ -1907,7 +1907,8 @@ Return Value:
|
||||
}
|
||||
|
||||
LaunchArguments += CommandLine;
|
||||
LogInfo("Test process exited with: %lu", LxsstuLaunchWsl(LaunchArguments.c_str()));
|
||||
DWORD ExitCode = LxsstuLaunchWsl(LaunchArguments.c_str());
|
||||
LogInfo("Test process exited with: %lu", ExitCode);
|
||||
|
||||
//
|
||||
// Parse the contents of the linux log(s) files and relog.
|
||||
@ -1917,9 +1918,11 @@ Return Value:
|
||||
{
|
||||
THROW_IF_NTSTATUS_FAILED(LxsstuParseLinuxLogFiles(LogFileName, &TestPassed));
|
||||
|
||||
THROW_HR_IF(E_FAIL, !TestPassed);
|
||||
VERIFY_IS_TRUE(TestPassed);
|
||||
}
|
||||
|
||||
VERIFY_ARE_EQUAL(0, ExitCode);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user