nitunit: compile with -q to silent warnings
authorJean Privat <jean@pryen.org>
Mon, 6 Jun 2016 17:26:20 +0000 (13:26 -0400)
committerJean Privat <jean@pryen.org>
Tue, 7 Jun 2016 19:08:41 +0000 (15:08 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/testing/testing_doc.nit
src/testing/testing_suite.nit

index 814f7d2..75e0830 100644 (file)
@@ -274,7 +274,7 @@ class NitUnitExecutor
                if mmodule != null then
                        opts.add "-I {mmodule.filepath.dirname}"
                end
-               var cmd = "{nitc} --ignore-visibility --no-color '{file}' {opts.join(" ")} >'{file}.out1' 2>&1 </dev/null -o '{file}.bin'"
+               var cmd = "{nitc} --ignore-visibility --no-color -q '{file}' {opts.join(" ")} >'{file}.out1' 2>&1 </dev/null -o '{file}.bin'"
                var res = toolcontext.safe_exec(cmd)
                return res
        end
index 37be2f5..51568c7 100644 (file)
@@ -210,7 +210,7 @@ class TestSuite
                        return
                end
                var include_dir = module_file.filename.dirname
-               var cmd = "{nitc} --no-color '{file}.nit' -I {include_dir} -o '{file}.bin' > '{file}.out' 2>&1 </dev/null"
+               var cmd = "{nitc} --no-color -q '{file}.nit' -I {include_dir} -o '{file}.bin' > '{file}.out' 2>&1 </dev/null"
                var res = toolcontext.safe_exec(cmd)
                var f = new FileReader.open("{file}.out")
                var msg = f.read_all