Skip to content

Commit

Permalink
Fix getting output from process
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Dec 25, 2015
1 parent 010672c commit 1740f80
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: .
specs:
parallel_cucumber (0.1.18)
parallel_cucumber (0.1.19)
cucumber
parallel (~> 1.6)

GEM
remote: https://rubygems.org/
specs:
ast (2.1.0)
ast (2.2.0)
astrolabe (1.3.1)
parser (~> 2.2)
builder (3.2.2)
Expand All @@ -19,7 +19,7 @@ GEM
gherkin3 (~> 3.1.0)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.2)
cucumber-core (1.3.0)
cucumber-core (1.3.1)
gherkin3 (~> 3.1.0)
diff-lcs (1.2.5)
gherkin3 (3.1.2)
Expand Down
4 changes: 2 additions & 2 deletions lib/parallel_cucumber/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def show_output(io, process_number)
else
retry
end
rescue EOFError
return
rescue EOFError # rubocop:disable Lint/HandleExceptions
ensure
print_chevron_msg(process_number, remaining_part)
file.write("#{remaining_part}")
file.close unless file.nil?
end
File.read("process_#{process_number}.log")
end

def last_cucumber_line?(line)
Expand Down
2 changes: 1 addition & 1 deletion lib/parallel_cucumber/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ParallelCucumber
VERSION = '0.1.18'
VERSION = '0.1.19'
end # ParallelCucumber

0 comments on commit 1740f80

Please sign in to comment.