summaryrefslogtreecommitdiff
path: root/scripts/prune-old-flaky-specs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/prune-old-flaky-specs')
-rwxr-xr-xscripts/prune-old-flaky-specs5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/prune-old-flaky-specs b/scripts/prune-old-flaky-specs
index f7451fbd428..59f97e833b5 100755
--- a/scripts/prune-old-flaky-specs
+++ b/scripts/prune-old-flaky-specs
@@ -5,7 +5,10 @@
# gem manually on the CI
require 'rubygems'
-require_relative '../lib/rspec_flaky/report'
+singleton_class.__send__(:alias_method, :require_dependency, :require)
+$LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
+
+require 'rspec_flaky/report'
report_file = ARGV.shift
unless report_file