Skip to content

Commit 982dc20

Browse files
committed
Merge branch 'master' into bug/cloud-runner-deployments
2 parents fe2d748 + 18b1f73 commit 982dc20

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

Tests/DistTestCore/Global.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Reflection;
1+
using System.Diagnostics;
2+
using System.Reflection;
23
using Core;
34
using Logging;
45

@@ -33,7 +34,9 @@ public void Setup()
3334
{
3435
try
3536
{
36-
Stopwatch.Measure(log, "Global setup", () =>
37+
Trace.Listeners.Add(new ConsoleTraceListener());
38+
39+
Logging.Stopwatch.Measure(log, "Global setup", () =>
3740
{
3841
globalEntryPoint.Announce();
3942
globalEntryPoint.Tools.CreateWorkflow().DeleteNamespacesStartingWith(TestNamespacePrefix, wait: true);
@@ -55,6 +58,8 @@ public void TearDown()
5558
deleteTrackedFiles: true,
5659
waitTillDone: true
5760
);
61+
62+
Trace.Flush();
5863
}
5964
}
6065
}

Tests/DistTestCore/Logs/BaseTestLog.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,8 @@ public void WriteLogTag()
5959

6060
protected static ILog CreateMainLog(string fullName, string name)
6161
{
62-
ILog log = new FileLog(fullName);
63-
log = ApplyConsoleOutput(log);
64-
return log;
65-
}
66-
67-
private static ILog ApplyConsoleOutput(ILog log)
68-
{
69-
// If we're running as a release test, we'll split the log output
70-
// to the console as well.
71-
72-
var testType = Environment.GetEnvironmentVariable("TEST_TYPE");
73-
if (string.IsNullOrEmpty(testType) || testType.ToLowerInvariant() != "release-tests")
74-
{
75-
return log;
76-
}
77-
7862
return new LogSplitter(
79-
log,
63+
new FileLog(fullName),
8064
new ConsoleLog()
8165
);
8266
}

0 commit comments

Comments
 (0)