chore: hopefully fixing CI issues

This commit is contained in:
bd_ 2023-07-30 02:22:37 +09:00
parent 9609328cf0
commit c10a2de7de
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using nadena.dev.modular_avatar.core.editor; using nadena.dev.modular_avatar.core.editor;
using nadena.dev.modular_avatar.editor.ErrorReporting;
using NUnit.Framework; using NUnit.Framework;
using UnityEditor; using UnityEditor;
using UnityEditor.Animations; using UnityEditor.Animations;
@ -17,6 +18,7 @@ namespace modular_avatar_tests
[SetUp] [SetUp]
public virtual void Setup() public virtual void Setup()
{ {
BuildReport.Clear();
objects = new List<GameObject>(); objects = new List<GameObject>();
} }

View File

@ -23,6 +23,8 @@ namespace nadena.dev.modular_avatar.editor.ErrorReporting
public static void MaybeOpenErrorReportUI() public static void MaybeOpenErrorReportUI()
{ {
if (Application.isBatchMode) return; // headless unit tests
if (BuildReport.CurrentReport.Avatars.Any(av => av.logs.Count > 0)) if (BuildReport.CurrentReport.Avatars.Any(av => av.logs.Count > 0))
{ {
OpenErrorReportUI(); OpenErrorReportUI();