Skip to content

Commit d996c5d

Browse files
committed
More logs
1 parent ca6ab46 commit d996c5d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/gha/integration_testing/automated_testapp/AutomatedTestRunner.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ private static string FormatLog(string condition, string stackTrace, LogType typ
102102
return string.Format("[{0}]({1}): {2}\n{3}\n", DateTime.Now, type, condition, stackTrace);
103103
}
104104

105+
float lastLogTime = 0;
106+
105107
// Runs through the tests, checking if the current one is done.
106108
// If so, logs the relevant information, and proceeds to the next test.
107109
public void Update() {
@@ -116,7 +118,10 @@ public void Update() {
116118

117119
if (currentTestIndex >= tests.Count) {
118120
if (Finished) {
119-
UnityEngine.Debug.Log("===== Test was finished, waiting for some time to pass: " + Time.time + " " + endTime);
121+
if (Time.time > lastLogTime + 5f) {
122+
UnityEngine.Debug.Log("===== Test was finished, waiting for some time to pass: " + Time.time + " " + endTime);
123+
lastLogTime = Time.time;
124+
}
120125
// No tests left to run.
121126
// Wait 5 seconds before notifying test lab manager so video can capture end of test.
122127
if (Time.time > endTime + 5f) {
@@ -138,6 +143,7 @@ public void Update() {
138143
}
139144
Finished = true;
140145
endTime = Time.time;
146+
UnityEngine.Debug.Log("===== Test was finished, starting to wait: " + Time.time + " " + endTime);
141147
}
142148
return;
143149
}

0 commit comments

Comments
 (0)