Skip to content

Commit b01ffaa

Browse files
committed
let run if no apk is specified and feature file has only web
1 parent 1ade18e commit b01ffaa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bin/kraken-mobile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ end
3636
#-------------------------------
3737

3838
def user_entered_apk_path
39-
ensure_apk_is_specified
39+
return nil if ARGV.first.nil?
40+
4041
File.expand_path(ARGV.first)
4142
end
4243

@@ -62,6 +63,7 @@ else
6263
when 'resign'
6364
require 'calabash-android/helpers'
6465
puts 'Resigning APK with Calabash-Android'
66+
ensure_apk_is_specified
6567
resign_apk(user_entered_apk_path)
6668
when 'run'
6769
require File.join(File.dirname(__FILE__), 'kraken_mobile_calabash_android')

lib/kraken_mobile.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def start
2929
# Helpers
3030
#-------------------------------
3131
def apk_path_for_process_id(_process_id)
32+
raise 'ERROR: Invalid APK file path' if @apk_path.nil?
33+
3234
@apk_path
3335
end
3436

0 commit comments

Comments
 (0)