ldp_testsuite_wrapper 0.0.3 → 0.0.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: c600d9933a618a0ce2959c003f117d734c2ff634
4
- data.tar.gz: 17b61302049f76a5aa0c10a5f8c5ec12cfa374e8
3
+ metadata.gz: 1a5a8fc14d7519af9d68d4bc00c22f32006a887f
4
+ data.tar.gz: ce221783965954153e20de1b9394b419463b0156
5
5
  SHA512:
6
- metadata.gz: 16495ff63384618041cf1adec153782c583a6edbbc4330bc68d61a6294b786871a01e9ac299d05bfaca1acf72418787e58495900091447f8f96d497fa599ee30
7
- data.tar.gz: b508117fa19d6628f9980cfe95190cb9a1967723089f4fb47bd16153f91ae43ad180bff6a9d201b0a305f9d1331ec5168d7a00502d0c298a6807d0db9798d4eb
6
+ metadata.gz: d8ac3ffc66fe932f01e03c60c88e96cca43165b112bc807a2a52fd33668d8dbc3b3a7b6e8246f4a6669e1806e6e10b5a033a5e1b2db59d87d439c1a23a2f5b86
7
+ data.tar.gz: 5a6ae5dfda6f6cf84452324c7ccaa742f106c597d669217f76bd6805e08faf53858be9ead7218215bd3c8144d58f0a2b9358d4c8f539aa3b0eb74e7f18951a91
@@ -32,10 +32,18 @@ RSpec.shared_examples 'ldp test suite' do
32
32
 
33
33
  before do
34
34
  $response ||= {}
35
- $response[test_suite_options] ||= ldp_testsuite.exec(test_suite_options.merge(server: url))
36
- end
35
+ $response[test_suite_options] ||= begin
36
+ File.delete(report_path) if File.exist? report_path
37
+ status, stdout = ldp_testsuite.exec(test_suite_options.merge(server: url))
37
38
 
38
- before do
39
+ # exitstatus 0: OK
40
+ # exitstatus 1: hard error
41
+ # exitstatus 2+: test suite failure
42
+ raise stdout.string if status.exitstatus == 1
43
+
44
+ status
45
+ end
46
+
39
47
  expect(File).to exist(report_path)
40
48
  end
41
49
 
@@ -1,3 +1,3 @@
1
1
  module LdpTestsuiteWrapper
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldp_testsuite_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer