diff options
| author | Luke Kanies <luke@madstop.com> | 2007-11-08 16:31:03 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-11-08 16:31:03 -0600 |
| commit | 964aebb96416984815f5ef74e36825915d52fe2a (patch) | |
| tree | 725253feb7f52442833d35545bf3630a322a66c0 /test/lib | |
| parent | 8f04446c9473cf80328dd9cbc9a1d15b6057409a (diff) | |
| parent | 22b96e0a8ab07ef3fddea3d3602948dbf45c4dd7 (diff) | |
| download | puppet-964aebb96416984815f5ef74e36825915d52fe2a.tar.gz puppet-964aebb96416984815f5ef74e36825915d52fe2a.tar.xz puppet-964aebb96416984815f5ef74e36825915d52fe2a.zip | |
Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppet
Diffstat (limited to 'test/lib')
| -rwxr-xr-x | test/lib/puppettest.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb index 7bd2f107d..92981b557 100755 --- a/test/lib/puppettest.rb +++ b/test/lib/puppettest.rb @@ -195,6 +195,8 @@ module PuppetTest end Puppet[:ignoreschedules] = true + + @start = Time.now end def tempfile @@ -244,6 +246,8 @@ module PuppetTest end def teardown + @stop = Time.now + File.open("/tmp/test_times.log", ::File::WRONLY|::File::CREAT|::File::APPEND) { |f| f.puts "%0.4f %s %s" % [@stop - @start, @method_name, self.class] } @@cleaners.each { |cleaner| cleaner.call() } @@tmpfiles.each { |file| |
