Пример #1
0
        bool ExecuteTests(UnrealTestOptions Options, IEnumerable <ITestNode> TestList)
        {
            // Create the test executor
            var Executor = new TextExecutor();

            try
            {
                bool Result = Executor.ExecuteTests(Options, TestList);

                return(Result);
            }
            catch (System.Exception ex)
            {
                Gauntlet.Log.Info("");
                Gauntlet.Log.Error("{0}.\r\n\r\n{1}", ex.Message, ex.StackTrace);

                return(false);
            }
            finally
            {
                Executor.Dispose();

                DevicePool.Instance.Dispose();

                if (ParseParam("clean"))
                {
                    LogInformation("Deleting temp dir {0}", Options.TempDir);
                    DirectoryInfo Di = new DirectoryInfo(Options.TempDir);
                    if (Di.Exists)
                    {
                        Di.Delete(true);
                    }
                }

                GC.Collect();
            }
        }