ios_tests/Rakefile in appium_lib-1.0.0 vs ios_tests/Rakefile in appium_lib-2.0.0

- old
+ new

@@ -3,11 +3,14 @@ task :default => :ios # Run sh and ignore exception def run_sh cmd - begin; sh cmd; rescue; end + begin + sh cmd + rescue + end end # Run cmd. On failure run install and try again. def bash cmd sh cmd do |successful, result| @@ -30,11 +33,11 @@ desc 'Run the iOS tests' task :ios, :args, :test_file do |args, test_file| # rake android['ok'] # args = android # test_file = {:args=>"ok"} - test_file = test_file[:args] - path = File.expand_path('appium.txt', Rake.application.original_dir) + test_file = test_file[:args] + path = File.expand_path('appium.txt', Rake.application.original_dir) ENV['APPIUM_TXT'] = path puts "Rake appium.txt path is: #{path}" cmd = 'bundle exec ruby ./lib/run.rb ios' cmd += %Q( "#{test_file}") if test_file bash cmd