[DRE-commits] [ruby-aruba] 25/74: Out debug information for announcements: timeout, timespan

Hideki Yamane henrich at moszumanska.debian.org
Sat Nov 28 01:16:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository ruby-aruba.

commit ebcba5b5675dc94dc8fa794707b71e4c21cae22a
Author: Dennis Günnewig <dg1 at ratiodata.de>
Date:   Tue Nov 24 10:47:33 2015 +0100

    Out debug information for announcements: timeout, timespan
---
 lib/aruba/api/command.rb    | 2 +-
 lib/aruba/cucumber/hooks.rb | 5 +++++
 lib/aruba/rspec.rb          | 4 ++++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/aruba/api/command.rb b/lib/aruba/api/command.rb
index 9021ada..45a816e 100644
--- a/lib/aruba/api/command.rb
+++ b/lib/aruba/api/command.rb
@@ -147,7 +147,7 @@ module Aruba
         announcer.announce(:full_environment, environment)
         announcer.announce(:timeout, 'exit', exit_timeout)
         announcer.announce(:timeout, 'io wait', io_wait_timeout)
-        announcer.announce(:time_span, 'startup wait time', startup_wait_time)
+        announcer.announce(:wait_time, 'startup wait time', startup_wait_time)
 
         announcer.announce(:directory, working_directory)
         announcer.announce(:command, cmd)
diff --git a/lib/aruba/cucumber/hooks.rb b/lib/aruba/cucumber/hooks.rb
index 8740b49..8091af4 100644
--- a/lib/aruba/cucumber/hooks.rb
+++ b/lib/aruba/cucumber/hooks.rb
@@ -93,6 +93,10 @@ Before('@announce-timeout') do
   announcer.activate :timeout
 end
 
+Before('@announce-wait-time') do
+  announcer.activate :wait_time
+end
+
 Before('@announce') do
   announcer.activate :command
   announcer.activate :stdout
@@ -102,6 +106,7 @@ Before('@announce') do
   announcer.activate :full_environment
   announcer.activate :environment
   announcer.activate :timeout
+  announcer.activate :wait_time
   announcer.activate :stop_signal
 end
 
diff --git a/lib/aruba/rspec.rb b/lib/aruba/rspec.rb
index 2364c1e..724d5b6 100644
--- a/lib/aruba/rspec.rb
+++ b/lib/aruba/rspec.rb
@@ -53,6 +53,8 @@ RSpec.configure do |config|
     announcer.activate(:directory)            if example.metadata[:announce_directory]
     announcer.activate(:stdout)               if example.metadata[:announce_stdout]
     announcer.activate(:stderr)               if example.metadata[:announce_stderr]
+    announcer.activate(:timeout)              if example.metadata[:announce_timeout]
+    announcer.activate(:wait_time)            if example.metadata[:announce_wait_time]
     announcer.activate(:stop_signal)          if example.metadata[:announce_stop_signal]
 
     if example.metadata[:announce_output]
@@ -69,6 +71,8 @@ RSpec.configure do |config|
       announcer.activate(:command)
       announcer.activate(:directory)
       announcer.activate(:stop_signal)
+      announcer.activate(:timeout)
+      announcer.activate(:wait_time)
     end
   end
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git



More information about the Pkg-ruby-extras-commits mailing list