cukeforker 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1487c1adde80aaa2a43dfd3706aac1890476cf30
4
- data.tar.gz: 6fcc1e080f48b902a5129284b7d97b4bac895e64
3
+ metadata.gz: f4c1ca379107e406de49b6c9c7a8ee9a7c155c43
4
+ data.tar.gz: 4048ab9a0dd8a85ea3354d303b4f71d100f27251
5
5
  SHA512:
6
- metadata.gz: 529ce119ff0d0622b93e5c58c8cd54b93db6c723e07feb578cff6bf9c50c098ebba27e18e2829a541f8ed026b393b3d6b4449ab0cc649266c280be62a1e743e9
7
- data.tar.gz: d1caffb1aa9df91f79727a5507aeab67a8c3c1a5a6c67fc6219d5be6dac136718976fb647ce7046951a51b381c768e2122aaeb5278cd04724c33155dad31be37
6
+ metadata.gz: 461c96e056686d416c4add4dcbd268d99dfc164d158fcbe4cf20e6c822ea92ef97a73617f1b21aee5b19bf18bbfe6eaac73d2be2894569820826f5add6dbbdf6
7
+ data.tar.gz: c947910a873f8879e4b9c2879f23d275d7e332bcb5e8950153bfd46990f67d909676378bc80b8880faa63a06cf0f0b069ddae29d759c0c46dd11ff3106dc3d0e
@@ -1,3 +1,3 @@
1
1
  module CukeForker
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -33,6 +33,9 @@ module CukeForker
33
33
 
34
34
  def start
35
35
  @pid = Process.fork {
36
+ # make sure all workers die if cukeforker is killed
37
+ Process.setpgid 0, 0
38
+
36
39
  changed
37
40
  notify_observers :on_worker_forked, self
38
41
  execute_cucumber
@@ -60,6 +60,8 @@ module CukeForker
60
60
 
61
61
  it "runs a passing cuke and exits with 0" do
62
62
  Process.should_receive(:fork).and_yield.and_return(1234)
63
+ Process.should_receive(:setpgid).with(0,0)
64
+
63
65
  $stdout.should_receive(:reopen).with("some/path/some_feature.stdout")
64
66
  $stderr.should_receive(:reopen).with("some/path/some_feature.stderr")
65
67
 
@@ -71,6 +73,8 @@ module CukeForker
71
73
 
72
74
  it "runs a failing cuke and exits with 1" do
73
75
  Process.should_receive(:fork).and_yield.and_return(1234)
76
+ Process.should_receive(:setpgid).with(0,0)
77
+
74
78
  $stdout.should_receive(:reopen).with("some/path/some_feature.stdout")
75
79
  $stderr.should_receive(:reopen).with("some/path/some_feature.stderr")
76
80
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cukeforker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber