From 5dc3cb04bebc79517ae5f64d1d3c652b6dfba7ea Mon Sep 17 00:00:00 2001 From: luke Date: Wed, 21 Sep 2005 17:39:43 +0000 Subject: Okay, significant change -- classes no longer accept arguments (which makes things simpler but encourages the user of global variables, which is bad), and classes are finally singletons, meaning they will only ever be evaluated for each node a single time. I still need to make nodes work correctly, but that is going to involve modifying the parsing system and a bit more git-svn-id: https://reductivelabs.com/svn/puppet/trunk@694 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/parser/tc_parser.rb | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'test/parser/tc_parser.rb') diff --git a/test/parser/tc_parser.rb b/test/parser/tc_parser.rb index 75dd6db82..de2d75ddc 100644 --- a/test/parser/tc_parser.rb +++ b/test/parser/tc_parser.rb @@ -9,26 +9,12 @@ require 'puppet/parser/parser' require 'test/unit' require 'puppettest' -# $Id$ - -class TestParser < Test::Unit::TestCase - # hmmm - # this is complicated, because we store references to the created - # objects in a central store +class TestParser < TestPuppet def setup - Puppet[:loglevel] = :debug if __FILE__ == $0 + super Puppet[:parseonly] = true #@lexer = Puppet::Parser::Lexer.new() @parser = Puppet::Parser::Parser.new() - @@tmpfiles = [] - end - - def teardown - @@tmpfiles.each { |file| - if FileTest.exist?(file) - system("rm -rf %s" % file) - end - } end def test_each_file @@ -73,3 +59,5 @@ class TestParser < Test::Unit::TestCase } end end + +# $Id$ -- cgit