bin/testr in testr-14.2.0 vs bin/testr in testr-14.3.0

- old
+ new

@@ -1,9 +1,9 @@ #!/usr/bin/env ruby =begin -TESTR 1 "2012-01-16" "14.2.0" +TESTR 1 "2012-01-20" "14.3.0" ============================= NAME ---- @@ -34,11 +34,11 @@ testr(1), testr-driver(1), testr-master(1), testr-herald(1) =end ========================================================================= -$0 = File.basename(__FILE__) +$0 = File.basename(__FILE__) # for easier indentification in ps(1) output require 'binman' BinMan.help require 'json' @@ -87,18 +87,15 @@ } begin while key = STDIN.gets.chomp if command = COMMANDS[key] - if command == :quit - @driver.quit - break - else - @driver.send [command] - end - else - COMMANDS.each do |key, cmd| - warn "testr: Type #{key} then ENTER to #{cmd.to_s.tr('_', ' ')}." + warn "testr: Sending #{command.to_s.inspect} command..." + @driver.send [command] + break if command == :quit + else # invalid command + COMMANDS.each do |key, command| + warn "testr: Type #{key} then ENTER to #{command.to_s.tr('_', ' ')}." end end end rescue Interrupt # forced quit