Merge pull request #3386 from alexanderkyte/nunit_lite_return_status
authorAlexander Kyte <alexmkyte@gmail.com>
Tue, 9 Aug 2016 19:03:27 +0000 (15:03 -0400)
committerGitHub <noreply@github.com>
Tue, 9 Aug 2016 19:03:27 +0000 (15:03 -0400)
[runtime] Make nunitlite return failure exit code when tests fail

external/nunit-lite
mcs/tools/nunit-lite/nunit-lite-console/Console.cs

index 7065bc89e8661cad447140752c0fce118644e06e..e4c2696aa3f6d67b065ae491b27217dcfe503732 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 7065bc89e8661cad447140752c0fce118644e06e
+Subproject commit e4c2696aa3f6d67b065ae491b27217dcfe503732
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);
         }
     }
 }