Beispiel #1
0
        private static void PerformTests(Nightly.RunMode runMode, string arg, string decorateSrcDirName = null)
        {
            var nightly    = new Nightly(runMode, decorateSrcDirName);
            var errMessage = nightly.RunAndPost();
            var message    = string.Format("Completed {0}", arg); // Not L10N

            nightly.Finish(message, errMessage);
        }
Beispiel #2
0
        private static bool PerformTests(Nightly.RunMode runMode, string arg, string decorateSrcDirName = null)
        {
            var nightly    = new Nightly(runMode, decorateSrcDirName);
            var errMessage = nightly.RunAndPost();
            var message    = string.Format(@"Completed {0}", arg);

            nightly.Finish(message, errMessage);
            return(string.IsNullOrEmpty(errMessage));
        }
Beispiel #3
0
        private static bool PerformTests(Nightly.RunMode runMode, string arg, string decorateSrcDirName = null)
        {
            var nightly     = new Nightly(runMode, decorateSrcDirName);
            var nightlyTask = Nightly.NightlyTask;

            if (nightlyTask != null && DateTime.UtcNow.Add(nightly.TargetDuration).ToLocalTime() > nightlyTask.NextRunTime)
            {
                // Don't run, because the projected end time is after the start of the next scheduled start
                return(false);
            }
            var errMessage = nightly.RunAndPost();
            var message    = string.Format(@"Completed {0}", arg);

            nightly.Finish(message, errMessage);
            return(string.IsNullOrEmpty(errMessage));
        }