The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Feature #12765

Test Harness should use a relative require that is 1.8 and 1.9 compatible

Added by Justin Stoller about 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:02/21/2012
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Patch:None Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


Ideally I think the Harness should a standard ruby library/gem structure and use simple requires, but until we can invest in the time to that I believe patching the harness to use a require_relative is the easiest solution. ie:

unless Kernel.respond_to?(:require_relative)
  module Kernel
    def require_relative(path)
      require File.join(File.dirname(caller[0]), path.to_str)

Related issues

Related to Puppet Acceptance - Feature #12743: Test Harness should be 1.9 compatible Closed 02/20/2012


#1 Updated by Branan Purvine-Riley over 3 years ago

  • Status changed from Accepted to Closed

Also available in: Atom PDF