From 2d64dafaf6238852d80b326ca22359da4371e912 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 17 Apr 2014 15:22:57 -0400 Subject: fix --retry argument, the help listed it correctly, but the code was using --repeat (#5119) Change-Id: I48b0ae8b3d8ab91c4ca363a2bdece46952cce5a9 --- bin/run_tests | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/run_tests b/bin/run_tests index b258e85a..9102c325 100755 --- a/bin/run_tests +++ b/bin/run_tests @@ -534,15 +534,15 @@ def pin_test_name(name) end # -# run the tests, multiple times if `--repeat` and not all tests were successful. +# run the tests, multiple times if `--retry` and not all tests were successful. # def run_tests exit_code = nil - run_count = $repeat ? $repeat + 1 : 1 + run_count = $retry ? $retry + 1 : 1 run_count.times do |i| MiniTest::Unit.runner = LeapRunner.new exit_code = MiniTest::Unit.new.run - if !$repeat || exit_code == :success + if !$retry || exit_code == :success break elsif i != run_count-1 sleep $wait @@ -575,7 +575,7 @@ def main # parse command line options $halt_on_failure = true $output_format = :human - $repeat = false + $retry = false $wait = 5 loop do case ARGV[0] @@ -584,7 +584,7 @@ def main when '--help' then print_help when '--test' then ARGV.shift; pin_test_name(ARGV.shift) when '--list-tests' then list_tests - when '--repeat' then ARGV.shift; $repeat = ARGV.shift.to_i + when '--retry' then ARGV.shift; $retry = ARGV.shift.to_i when '--wait' then ARGV.shift; $wait = ARGV.shift.to_i else break end @@ -592,4 +592,4 @@ def main run_tests end -main() \ No newline at end of file +main() -- cgit v1.2.3