pdqtest 1.9.9beta10 → 1.9.9beta11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f787c7d95a40dd0243e1a79bf35c50c6f35156114fa400d969e1482847918934
4
- data.tar.gz: 45a75d89287e99c6c4ba900ba535e14898cb3c1ba28575dbc5d19199e86bda95
3
+ metadata.gz: 9d0d90f3af8c39a0195c66bc63db29c12a2a17fc6a84d3d82151b24a570ad1e8
4
+ data.tar.gz: 6aaa15557cf39b16773ded05b3b4165eed0e5ec2cefa0cc9150abf95bb4931f6
5
5
  SHA512:
6
- metadata.gz: 46f4d91ffbed0f0e856bee1960a1f54044b956102b91136445941c36d51231e815794233e6d267ba3637a0ae32279c6155e5ac5991148b09e7ac71af8456dca8
7
- data.tar.gz: 534779666962526e7dbc29bf28eb39e22a4d8490bba9001da36a5aa156c36f6711db2c2db26603cf3239a5f982532cd09a024df0836421fb9470b5fcc56f0af4
6
+ metadata.gz: 5b085a8730dab2447f943f78697b277e97173bc5c668e2e54897be454a614d3f011cca0346e579794319c82cd9dd39452db29b1f665da530419941594bfad86e
7
+ data.tar.gz: '024703510449d147758d6df284baf29d82c6796e58f8432fbe1596c2e787f4cc399d1983ea9a2f4db5d84fd3feff46b7bfcc9b01dce08e0379bcdc3db20b792a'
data/exe/pdqtest CHANGED
@@ -102,6 +102,7 @@ Escort::App.create do |app|
102
102
 
103
103
  PDQTest::Emoji.disable(options[:global][:options][:disable_emoji])
104
104
  PDQTest::Puppet.skip_second_run(options[:global][:options][:skip_idempotency])
105
+ PDQTest::Puppet.set_debug(options[:global][:options][:debug])
105
106
 
106
107
  PDQTest::Inplace.set_enable options[:global][:options][:inplace_enable]
107
108
  PDQTest::Instance.set_inplace options[:global][:options][:inplace]
@@ -128,6 +129,7 @@ Escort::App.create do |app|
128
129
 
129
130
  PDQTest::Emoji.disable(options[:global][:options][:disable_emoji])
130
131
  PDQTest::Puppet.skip_second_run(options[:global][:options][:skip_idempotency])
132
+ PDQTest::Puppet.set_debug(options[:global][:options][:debug])
131
133
 
132
134
  PDQTest::Inplace.set_enable options[:global][:options][:inplace_enable]
133
135
  PDQTest::Instance.set_inplace options[:global][:options][:inplace]
@@ -162,6 +164,7 @@ Escort::App.create do |app|
162
164
 
163
165
  PDQTest::Emoji.disable(options[:global][:options][:disable_emoji])
164
166
  PDQTest::Puppet.skip_second_run(options[:global][:options][:skip_idempotency])
167
+ PDQTest::Puppet.set_debug(options[:global][:options][:debug])
165
168
 
166
169
  PDQTest::Inplace.set_enable options[:global][:options][:inplace_enable]
167
170
  PDQTest::Instance.set_inplace options[:global][:options][:inplace]
@@ -85,6 +85,7 @@ module PDQTest
85
85
  @@bats_executed = []
86
86
  @@setup_executed = []
87
87
  @@skip_second_run = false
88
+ @@debug = false
88
89
 
89
90
  def self.cp(key)
90
91
  CONTAINER_PATHS[Util.host_platform][key] ||
@@ -121,6 +122,10 @@ module PDQTest
121
122
  @@setup_executed
122
123
  end
123
124
 
125
+ def self.set_debug(debug)
126
+ @@debug = debug
127
+ end
128
+
124
129
  def self.module_metadata
125
130
  if File.exist? METADATA
126
131
  file = File.read(METADATA)
@@ -400,9 +405,12 @@ module PDQTest
400
405
  status
401
406
  end
402
407
 
408
+ def self.debug_arg
409
+ @@debug ? "--debug --trace --evaltrace" : ""
410
+ end
403
411
 
404
412
  def self.puppet_apply(example)
405
- "cd #{Docker.test_dir} ; #{setting(:puppet)} apply --detailed-exitcodes #{example}"
413
+ "cd #{Docker.test_dir} ; #{setting(:puppet)} apply #{debug_arg} --detailed-exitcodes #{example}"
406
414
  end
407
415
 
408
416
  def self.info
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "1.9.9beta10"
2
+ VERSION = "1.9.9beta11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdqtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.9beta10
4
+ version: 1.9.9beta11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams