Permalink
Browse files

Change push / pull steps to use sdcard instead of the system folder f…

…or step definitions
  • Loading branch information...
1 parent 87ec09c commit 32c443f14ecbcbb8badaa2c04fa794cb04601ef9 @joelbyler joelbyler committed Sep 20, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 features/step_definitions/adb_steps.rb
View
10 features/step_definitions/adb_steps.rb
@@ -76,15 +76,15 @@
sn = devices[0]
wait_for_device({:serial => sn}, 60)
remount({:serial => sn})
- shell('rm /system/cuke_test_file.txt', {:serial => sn})
- shell('ls /system/cuke_test_file.txt', {:serial => sn})
+ shell('rm /sdcard/cuke_test_file.txt', {:serial => sn})
+ shell('ls /sdcard/cuke_test_file.txt', {:serial => sn})
last_stdout.should include 'No such file or directory'
# create the temp file
File.open('cuke_test_file.txt', 'w'){ |f| f.write('Temporary file for adb testing. If found, please delete.') }
# push the file
- push('cuke_test_file.txt', '/system/cuke_test_file.txt', {:serial => sn})
+ push('cuke_test_file.txt', '/sdcard/cuke_test_file.txt', {:serial => sn})
last_stderr.should_not include 'failed to copy'
end
@@ -94,10 +94,10 @@
sn = devices[0]
wait_for_device({:serial => sn}, 60)
remount({:serial => sn})
- shell("touch /system/cuke_test_file.txt", {:serial => sn})
+ shell("touch /sdcard/cuke_test_file.txt", {:serial => sn})
# pull the file
- pull('/system/cuke_test_file.txt', 'cuke_test_file.txt', {:serial => sn})
+ pull('/sdcard/cuke_test_file.txt', 'cuke_test_file.txt', {:serial => sn})
# confirm that the file was created
File.exists?('cuke_test_file.txt').should == true

0 comments on commit 32c443f

Please sign in to comment.