lib/beaker/host/aix/user.rb in beaker-4.38.1 vs lib/beaker/host/aix/user.rb in beaker-4.39.0

- old
+ new

@@ -1,9 +1,9 @@ module Aix::User include Beaker::CommandFactory - def user_list(&block) + def user_list() execute("lsuser ALL") do |result| users = [] result.stdout.each_line do |line| users << line.split(' ')[0] end @@ -12,12 +12,12 @@ users end end - def user_get(name, &block) + def user_get(name) execute("lsuser #{name}") do |result| - fail_test "failed to get user #{name}" unless result.stdout =~ /^#{name} id/ + fail_test "failed to get user #{name}" unless /^#{name} id/.match?(result.stdout) yield result if block_given? result end end