[xharness] Don't report tests whose device were not found if there were no such tests. (#6102)
This commit is contained in:
Родитель
a2e9b599fe
Коммит
dbc9157945
|
@ -1772,7 +1772,10 @@ namespace xharness
|
|||
markdown_summary.Write ($"# Test run in progress: ");
|
||||
markdown_summary.Write (string.Join (", ", list));
|
||||
} else if (failedTests.Any ()) {
|
||||
markdown_summary.Write ($"{failedTests.Count ()} tests failed, {deviceNotFound.Count ()} tests' device not found, {passedTests.Count ()} tests passed.");
|
||||
markdown_summary.Write ($"{failedTests.Count ()} tests failed, ");
|
||||
if (deviceNotFound.Any ())
|
||||
markdown_summary.Write ($"{deviceNotFound.Count ()} tests' device not found, ");
|
||||
markdown_summary.Write ($"{passedTests.Count ()} tests passed.");
|
||||
} else if (deviceNotFound.Any ()) {
|
||||
markdown_summary.Write ($"{deviceNotFound.Count ()} tests' device not found, {passedTests.Count ()} tests passed.");
|
||||
} else if (passedTests.Any ()) {
|
||||
|
@ -1856,7 +1859,10 @@ namespace xharness
|
|||
writer.Write (string.Join (", ", list));
|
||||
writer.Write (")");
|
||||
} else if (failedTests.Any ()) {
|
||||
writer.Write ($"{failedTests.Count ()} tests failed, {deviceNotFound.Count ()} tests' device not found, {passedTests.Count ()} tests passed");
|
||||
writer.Write ($"{failedTests.Count ()} tests failed, ");
|
||||
if (deviceNotFound.Any ())
|
||||
writer.Write ($"{deviceNotFound.Count ()} tests' device not found, ");
|
||||
writer.Write ($"{passedTests.Count ()} tests passed");
|
||||
} else if (deviceNotFound.Any ()) {
|
||||
writer.Write ($"{deviceNotFound.Count ()} tests' device not found, {passedTests.Count ()} tests passed");
|
||||
} else if (passedTests.Any ()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче