lib/gamnit: do not execute gamnit clients when testing
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 6 Dec 2015 01:05:17 +0000 (20:05 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 10 Dec 2015 20:32:48 +0000 (15:32 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/gamnit.nit

index 43ec95c..079062d 100644 (file)
@@ -56,6 +56,8 @@ redef class App
 
        redef fun run
        do
+               if "NIT_TESTING".environ == "true" then exit 0
+
                # TODO manage exit condition
                loop frame_full
        end