Fix pathes => paths typo in bootstrap test runner

This commit is contained in:
Matt Valentine-House 2024-06-04 14:59:57 +01:00
parent 932ecd3a1c
commit c90cb4d743

View File

@ -234,7 +234,7 @@ End
end end
tests ||= ARGV tests ||= ARGV
tests = Dir.glob("#{File.dirname($0)}/test_*.rb").sort if tests.empty? tests = Dir.glob("#{File.dirname($0)}/test_*.rb").sort if tests.empty?
pathes = tests.map {|path| File.expand_path(path) } paths = tests.map {|path| File.expand_path(path) }
BT.progress = %w[- \\ | /] BT.progress = %w[- \\ | /]
BT.progress_bs = "\b" * BT.progress[0].size BT.progress_bs = "\b" * BT.progress[0].size
@ -278,7 +278,7 @@ End
end end
in_temporary_working_directory(dir) do in_temporary_working_directory(dir) do
exec_test pathes exec_test paths
end end
end end
@ -290,8 +290,8 @@ def erase(e = true)
end end
end end
def load_test pathes def load_test paths
pathes.each do |path| paths.each do |path|
load File.expand_path(path) load File.expand_path(path)
end end
end end
@ -341,13 +341,13 @@ def concurrent_exec_test
end end
end end
def exec_test(pathes) def exec_test(paths)
# setup # setup
load_test pathes load_test paths
BT_STATE.count = 0 BT_STATE.count = 0
BT_STATE.error = 0 BT_STATE.error = 0
BT.columns = 0 BT.columns = 0
BT.width = pathes.map {|path| File.basename(path).size}.max + 2 BT.width = paths.map {|path| File.basename(path).size}.max + 2
# execute tests # execute tests
if BT.wn > 1 if BT.wn > 1