def t1(w):
pretty = '%s t1' % __file__
print(pretty)
root_path = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir)
rel_path = os.path.join(root_path, "handset/jobs/tests/testdata/galatea-v-1.apk")
apk_path = os.path.abspath(rel_path)
if not apk_path:
print('FAIL %s: could not download apk' % pretty)
return False
try:
package_name = w.get_package_name(apk_path) # apk
if not package_name:
print(
'FAIL %s: Could not get package name of apk: %s'
% (pretty, apk_path)
)
return False
except Exception, e:
print('FAIL %s: %s' % (pretty, str(e)))
return False
return True
# check that get_aapt_path return an existing path
评论列表
文章目录