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

- old
+ new

@@ -3,11 +3,14 @@ task :default => :android # 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,10 +33,10 @@ # rake android['single_text_name'] # rake android def run_android test_file=nil wait_for_valid_device - path = File.expand_path('appium.txt', Rake.application.original_dir) + 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 android' cmd += %Q( "#{test_file}") if test_file bash cmd \ No newline at end of file