Permalink
Browse files

bug 692346 - explicitly require a /mnt/sdcard-based devRoot. r=jmaher

  • Loading branch information...
1 parent a6b08bc commit 7590e3d1174450a003aa9a28083ff0442c94b535 @escapewindow escapewindow committed Oct 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 sut_tools/cleanup.py
View
@@ -32,8 +32,8 @@
dm.debug = 5
devRoot = checkDeviceRoot(dm)
-if devRoot is None or devRoot == '/tests':
- setFlag(errorFile, "Remote Device Error: devRoot from devicemanager [%s] is not correct" % devRoot)
+if not str(devRoot).startswith("/mnt/sdcard"):
+ setFlag(errorFile, "Remote Device Error: devRoot from devicemanager [%s] is not correct" % str(devRoot))
sys.exit(1)
if dm.dirExists(devRoot):

0 comments on commit 7590e3d

Please sign in to comment.