From: Alexander Kyte Date: Tue, 9 Aug 2016 19:03:27 +0000 (-0400) Subject: Merge pull request #3386 from alexanderkyte/nunit_lite_return_status X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=6718281ee837252d6f2c9fb6b200188a4571f9f3;hp=1fe681e47c6d6f850a405883394d8860e83b2d2f;p=mono.git Merge pull request #3386 from alexanderkyte/nunit_lite_return_status [runtime] Make nunitlite return failure exit code when tests fail --- diff --git a/external/nunit-lite b/external/nunit-lite index 7065bc89e86..e4c2696aa3f 160000 --- a/external/nunit-lite +++ b/external/nunit-lite @@ -1 +1 @@ -Subproject commit 7065bc89e8661cad447140752c0fce118644e06e +Subproject commit e4c2696aa3f6d67b065ae491b27217dcfe503732 diff --git a/mcs/tools/nunit-lite/nunit-lite-console/Console.cs b/mcs/tools/nunit-lite/nunit-lite-console/Console.cs index ee6d7a65051..fa61acbf97c 100644 --- a/mcs/tools/nunit-lite/nunit-lite-console/Console.cs +++ b/mcs/tools/nunit-lite/nunit-lite-console/Console.cs @@ -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); } } }