コード例 #1
0
ファイル: WorkerRole.cs プロジェクト: mikesavior/elmcity
		public static void TestRunnerAdmin(object o, ElapsedEventArgs args)
		{
			GenUtils.LogMsg("status", "TestRunnerAdmin", null);
			var calinfo = new Calinfo(ElmcityUtils.Configurator.azure_compute_account);
			try
			{
				var ca_failed = GenUtils.RunTests("CalendarAggregator");
				var eu_failed = GenUtils.RunTests("ElmcityUtils");
				//failed += GenUtils.RunTests("WorkerRole");
				//failed += GenUtils.RunTests("WebRole");
				var clean = (ca_failed == "" && eu_failed == "");
				var msg = clean ? "clean at " : "failures at ";
				bs.PutBlob("admin", "testrunner", msg + "\n" + ca_failed + "\n" + eu_failed + "\n" + System.DateTime.UtcNow.ToString(), "text/plain");
			}
			catch (Exception e)
			{
				GenUtils.PriorityLogMsg("exception", "TestRunnerAdmin", e.Message + e.StackTrace);
			}
		}