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

View File

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