Make prop_test and cycle_test cwd-agnostic (#9498)

This commit is contained in:
Maximilian Downey Twiss
2024-03-17 11:22:22 +11:00
committed by GitHub
parent 8a3b80778a
commit 5d0af28461
4 changed files with 8 additions and 11 deletions

View File

@@ -1,13 +1,12 @@
#!/usr/bin/env ruby
# Add >LOCAL< lib to LOAD_PATH so that packages can be loaded
$LOAD_PATH.unshift '../lib'
require 'fileutils'
require_relative '../lib/const'
require_relative '../lib/color'
require_relative '../lib/package'
# Add >LOCAL< lib to LOAD_PATH so that packages can be loaded
$LOAD_PATH.unshift File.join(CREW_LIB_PATH, 'lib')
tofail = 0
Dir.glob('../packages/*.rb').each do |filename|