diff options
author | Matt Valentine-House <[email protected]> | 2024-06-04 14:59:57 +0100 |
---|---|---|
committer | Matt Valentine-House <[email protected]> | 2024-06-04 20:34:19 +0100 |
commit | c90cb4d743328daa7d665309e761672cf18d56f6 (patch) | |
tree | 9216cc2555a4f6892d0786bddca179d194b19cc4 /bootstraptest/runner.rb | |
parent | 932ecd3a1c8a2c5094406063903866499176529e (diff) |
Fix pathes => paths typo in bootstrap test runner
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-x | bootstraptest/runner.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 120b78246c..329d429f33 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -234,7 +234,7 @@ End end tests ||= ARGV 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_bs = "\b" * BT.progress[0].size @@ -278,7 +278,7 @@ End end in_temporary_working_directory(dir) do - exec_test pathes + exec_test paths end end @@ -290,8 +290,8 @@ def erase(e = true) end end -def load_test pathes - pathes.each do |path| +def load_test paths + paths.each do |path| load File.expand_path(path) end end @@ -341,13 +341,13 @@ def concurrent_exec_test end end -def exec_test(pathes) +def exec_test(paths) # setup - load_test pathes + load_test paths BT_STATE.count = 0 BT_STATE.error = 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 if BT.wn > 1 |