Skip to content

Commit

Permalink
Merge pull request #216 from glennsarti/gh-199-part2
Browse files Browse the repository at this point in the history
(GH-199) Update stack trace tests for Puppet 5.5.18
  • Loading branch information
glennsarti authored Jan 21, 2020
2 parents 590804e + 6ba8585 commit 0215658
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@
}

def modified_puppet_stack_trace
# Due to a modification to the way stack traces are treated in Puppet 6.11.0, the stack size is different
# Due to a modification to the way stack traces are treated in Puppet 6.11.0 and 5.5.18, the stack size is different
# See https://tickets.puppetlabs.com/browse/PUP-10150 for more infomation
@modified_puppet_stack_trace ||= Gem::Version.create(Puppet.version) >= Gem::Version.create('6.11.0')
pup_ver = Gem::Version.create(Puppet.version)
return true if pup_ver >= Gem::Version.create('6.11.0')
return true if pup_ver.canonical_segments.first == 5 && pup_ver >= Gem::Version.create('5.5.18')
false
end

context 'Processing an empty manifest with no breakpoints' do
Expand Down

0 comments on commit 0215658

Please sign in to comment.