[runtime] Return failure return status if nunit-lite test suite fails
authorAlexander Kyte <alkyte@microsoft.com>
Tue, 9 Aug 2016 18:35:48 +0000 (14:35 -0400)
committerAlexander Kyte <alkyte@microsoft.com>
Tue, 9 Aug 2016 18:49:14 +0000 (14:49 -0400)
mcs/tools/nunit-lite/nunit-lite-console/Console.cs

index ee6d7a650513dbf254d4b81be37cec80dcdeb801..fa61acbf97c5d98ef8ee9596cd204aca9ce597ee 100644 (file)
@@ -73,9 +73,12 @@ namespace NUnitLite
         //             Example usage: -exclude:category1,category2 this command can be used
         //             in combination with the -include option also note that exclude takes priority
         //             over all includes
-        public static void Main(string[] args)
+        public static int Main(string[] args)
         {
-            new TextUI().Execute(args);
+            var runner = new TextUI();
+            runner.Execute(args);
+            
+            return (runner.success ? 0 : 1);
         }
     }
 }