summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-01 02:43:47 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-01 13:46:46 +0800
commit39b6f31c66ff51451033ff84a2832731065cd28d (patch)
tree0554167eb4e6133390e77016139bfe5c8b39ba3b /scripts
parentdb40a7c4e359052313b9a7bf104aa4e9586deada (diff)
downloadgitlab-ce-39b6f31c66ff51451033ff84a2832731065cd28d.tar.gz
Eliminate constants warnings by:
* Replace `require` or `require_relative` with `require_dependency` * Remove unneeded `autoload`
Diffstat (limited to 'scripts')
-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