diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-06-01 02:43:47 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-06-01 13:46:46 +0800 |
commit | 39b6f31c66ff51451033ff84a2832731065cd28d (patch) | |
tree | 0554167eb4e6133390e77016139bfe5c8b39ba3b /scripts | |
parent | db40a7c4e359052313b9a7bf104aa4e9586deada (diff) | |
download | gitlab-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-x | scripts/prune-old-flaky-specs | 5 |
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 |