Permalink
Browse files

gallery-select-album.py: exits if API != 15

  • Loading branch information...
dtmilano committed Apr 2, 2013
1 parent 798fc84 commit c51317b9735a2e77226cbe4e325ce5f3118b53be
Showing with 2 additions and 1 deletion.
  1. +2 −1 AndroidViewClient/examples/gallery-select-album.py
@@ -39,8 +39,9 @@
vc = ViewClient(device, serialno)
if vc.build[VERSION_SDK_PROPERTY] != 15:
print 'This script is intended to run on API-15'
+ sys.exit(1)
ALL_PICTURES = 'All pictures'
vc.findViewWithTextOrRaise(re.compile('%s \(\d+\)' % ALL_PICTURES)).touch()
vc.dump()
vc.findViewWithTextOrRaise(ALL_PICTURES)
-print "'%s' found" % ALL_PICTURES
+print "'%s' found" % ALL_PICTURES

0 comments on commit c51317b

Please sign in to comment.