[augeas-devel] augeas: master - * tests/augtest: do not typecheck everything

David Lutterkort lutter at fedoraproject.org
Fri Feb 6 21:56:22 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=40f967bc997a5c5a298393a7162df975f0d8d76f
Commit:        40f967bc997a5c5a298393a7162df975f0d8d76f
Parent:        9c0cfeb18285cab1b95486cc61e9111b67754d65
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Fri Feb 6 13:09:49 2009 -0800
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Feb 6 13:09:49 2009 -0800

* tests/augtest: do not typecheck everything

The typecheck is redundant (we already do that when running lens tests) and
really slow
---
 tests/augtest |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/tests/augtest b/tests/augtest
index 0f88eb6..7aa6d56 100755
--- a/tests/augtest
+++ b/tests/augtest
@@ -40,7 +40,6 @@ WIDTH = args.inject(0) do |max, arg|
 end
 status = 0
 
-augtool_check = "-c"
 args.each do |test|
     if File::directory?(AUGEAS_ROOT)
         FileUtils::rm_rf(AUGEAS_ROOT)
@@ -62,12 +61,11 @@ args.each do |test|
     redir = echo ? "" : "> /dev/null"
     printf("Test %-#{WIDTH}s ... ", File::basename(test, ".rb"))
     unless skip
-        IO.popen("augtool --nostdinc -n #{augtool_check} #{redir}", "w") do |io|
+        IO.popen("augtool --nostdinc -n #{redir}", "w") do |io|
             io.print(commands)
             io.puts("\nquit")
         end
         success=$?.success?
-        augtool_check = "" # It's enough to run augtool with -c once
         msgs = []
         diff.each do |file, exp|
             file = File::join(AUGEAS_ROOT, file)




More information about the augeas-devel mailing list