File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ def update data, *args
68
68
'APP_ACTIVITY' , 'APP_WAIT_ACTIVITY' ,
69
69
'DEVICE'
70
70
71
- # Ensure app path is absolute
72
- ENV [ 'APP_PATH' ] = File . expand_path ENV [ 'APP_PATH' ] if ENV [ 'APP_PATH' ] &&
73
- !ENV [ 'APP_PATH' ] . empty?
74
-
75
71
# device is not case sensitive
76
72
ENV [ 'DEVICE' ] = ENV [ 'DEVICE' ] . strip . downcase if !ENV [ 'DEVICE' ] . nil?
77
73
if ! %w( ios android selendroid ) . include? ENV [ 'DEVICE' ]
@@ -429,14 +425,11 @@ def absolute_app_path
429
425
# Sauce storage API. http://saucelabs.com/docs/rest#storage
430
426
return @app_path if @app_path . start_with? 'sauce-storage:'
431
427
return @app_path if @app_path . match ( /^http/ ) # public URL for Sauce
432
- if @app_path . match ( /^\/ / ) # absolute file path
428
+ if @app_path . match ( /^( \/ |[a-zA-Z]:) / ) # absolute file path
433
429
raise "App doesn't exist. #{ @app_path } " unless File . exist? @app_path
434
430
return @app_path
435
431
end
436
432
437
- # if it starts with [A-Z]:\ then it's a windows absolute path
438
- return @app_path if @app_path . match ( /^[a-zA-Z]:\\ / )
439
-
440
433
# if it doesn't contain a slash then it's a bundle id
441
434
return @app_path unless @app_path . match ( /[\/ \\ ]/ )
442
435
You can’t perform that action at this time.
0 commit comments