Description: Require the correct path for both build + autopkgtests
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-03-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -7,7 +7,11 @@ require_relative 'mock_redis'
 
 def local_require(*files)
   files.each do |file|
-    require File.dirname(__FILE__)+'/../lib/'+file
+    begin
+      require File.dirname(__FILE__)+'/../lib/'+file
+    rescue LoadError
+      require file
+    end
   end
 end
 
