diff options
Diffstat (limited to 'ruby/test/Ice/scope/Client.rb')
-rwxr-xr-x | ruby/test/Ice/scope/Client.rb | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/ruby/test/Ice/scope/Client.rb b/ruby/test/Ice/scope/Client.rb index 1de102800a6..9e5e8c476d7 100755 --- a/ruby/test/Ice/scope/Client.rb +++ b/ruby/test/Ice/scope/Client.rb @@ -9,26 +9,13 @@ # ********************************************************************** require 'Ice' - Ice::loadSlice("Test.ice") require './AllTests' -def run(args, communicator) - allTests(communicator) - return true -end - -begin - communicator = Ice.initialize(ARGV) - status = run(ARGV, communicator) -rescue => ex - puts $! - print ex.backtrace.join("\n") - status = false +class Client < ::TestHelper + def run(args) + self.init(args:args) do |communicator| + allTests(self, communicator) + end + end end - -if communicator - communicator.destroy() -end - -exit(status ? 0 : 1) |