No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DeleteBootstrapSceneTask.cs 603B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections;
  3. namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
  4. {
  5. internal class DeleteBootstrapSceneTask : TestTaskBase
  6. {
  7. public DeleteBootstrapSceneTask()
  8. {
  9. RunOnError = ErrorRunMode.RunAlways;
  10. RunOnCancel = true;
  11. }
  12. public override IEnumerator Execute(TestJobData testJobData)
  13. {
  14. if (string.IsNullOrEmpty(testJobData.InitTestScenePath))
  15. {
  16. yield break;
  17. }
  18. AssetDatabase.DeleteAsset(testJobData.InitTestScenePath);
  19. }
  20. }
  21. }