test/test_cli.rb in tracksperanto-1.9.3 vs test/test_cli.rb in tracksperanto-1.9.4
- old
+ new
@@ -21,12 +21,11 @@
$stdout, $stderr, verbosity = os, es, $VERBOSE
ARGV.replace(commandline_arguments.split)
$VERBOSE = false
load(BIN_P)
return [0, os.string, es.string]
- rescue Exception => boom # The binary uses exit(), we use that to preserve the output code
- return [boom.status, os.string, es.string] if boom.is_a?(SystemExit)
- raise boom
+ rescue SystemExit => boom # The binary uses exit(), we use that to preserve the output code
+ return [boom.status, os.string, es.string]
ensure
$VERBOSE = verbosity
ARGV.replace(old_argv)
$stdout, $stderr = old_stdout, old_stderr
end
\ No newline at end of file