test_bench-run 2.1.0.0 → 2.1.0.1

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
  SHA256:
3
- metadata.gz: f86789849939cac7ca7d67385058748f8e44655b7099caa24ef3e6d18e31a2f3
4
- data.tar.gz: 3db57846d485feb8aee9eac44335d60916b74eb9ae70bae7530450b61aa27b8e
3
+ metadata.gz: f057f4407f51a413ca579f15c3044932981bdc52ce1b703601c38cecad2d74e2
4
+ data.tar.gz: 4881a7ee8bcae5fbb4904b9ac6ceb8291d071f2c5c78a8d25959e451ee32aeeb
5
5
  SHA512:
6
- metadata.gz: 92c0cf6a5a3604038d2e5ab391b523196bb28e4273439b0e80da573cd9b290faa672cfcdcea932edf021b86f8005b8dd48504988fd2bb207f67d06c20247522e
7
- data.tar.gz: 54e52ced3ea8aef27b7f5e881c25586d3df4da6a740910f7b4985b64e06d850cf05de731bc69de867e1088105df788101772385eccedcb70f2068ee404067d09
6
+ metadata.gz: dd980c4c70a32b74ebbb5c0bf899432692ca83566e09a9b8af198e315b33dc57612052c18c7a331f0a2bc2b2fa142b6f5f6babf013e42bb72554e6ed7319e97a
7
+ data.tar.gz: a1e8553e0342b0c67fe2b2bb4b15502166b059f9679057f732e42b3e4928184dc257f253b52c150cbe0ef1db77df5f01d7a233dd4c37d7ed92271914e880c38a
@@ -53,17 +53,20 @@ module TestBench
53
53
  rescue => exception
54
54
 
55
55
  ensure
56
- if not exception.nil?
56
+ crashed = !exception.nil?
57
+
58
+ if crashed
57
59
  fork { start! }
60
+ end
58
61
 
59
- file_reader.close
60
- telemetry_writer.close
62
+ file_reader.close
63
+ telemetry_writer.close
61
64
 
62
- exit(false)
63
- end
65
+ success = !crashed
66
+ exit(success)
64
67
  end
65
68
  # Must refer to line containing "fork { start! }"
66
- def fork_line = __LINE__ - 9
69
+ def fork_line = __LINE__ - 10
67
70
 
68
71
  def execute(file)
69
72
  file_writer.puts(file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-run
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.0
4
+ version: 2.1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd