diff options
author | Xavier Ducrohet <xav@android.com> | 2012-10-23 16:34:02 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2012-10-23 16:36:27 -0700 |
commit | 7d87c565a7a9e3fe9b11eead657638c0fc7eae4f (patch) | |
tree | c12b8baf762aef15d4d36f59f30575404b8c1e3b /files | |
parent | d18850305de069a4e81302d1123db2b79f5ac4d2 (diff) | |
download | sdk-7d87c565a7a9e3fe9b11eead657638c0fc7eae4f.zip sdk-7d87c565a7a9e3fe9b11eead657638c0fc7eae4f.tar.gz sdk-7d87c565a7a9e3fe9b11eead657638c0fc7eae4f.tar.bz2 |
Set the permission of the emma file before downloading it.
Also fix the build file of the a couple of test projects.
Change-Id: I5e75f9c4ac397350d7b54e660782d38a2e3de5ad
Diffstat (limited to 'files')
-rw-r--r-- | files/ant/build.xml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml index 699fb58..9ada8f2 100644 --- a/files/ant/build.xml +++ b/files/ant/build.xml @@ -1256,7 +1256,7 @@ <if condition="${emma.enabled}"> <then> - <echo>WARNING: Code Coverage is currently only supported on the emulator and rooted devices.</echo> + <echo>Running tests...</echo> <run-tests-helper emma.enabled="true"> <extra-instrument-args> <arg value="-e" /> @@ -1264,6 +1264,17 @@ <arg value="${emma.dump.file}" /> </extra-instrument-args> </run-tests-helper> + + <echo level="info">Settting permission to download the coverage file...</echo> + <exec executable="${adb}" failonerror="true"> + <arg line="${adb.device.arg}" /> + <arg value="shell" /> + <arg value="run-as" /> + <arg value="${tested.project.app.package}" /> + <arg value="chmod" /> + <arg value="644" /> + <arg value="${emma.dump.file}" /> + </exec> <echo level="info">Downloading coverage file into project directory...</echo> <exec executable="${adb}" failonerror="true"> <arg line="${adb.device.arg}" /> @@ -1280,7 +1291,6 @@ </firstmatchmapper> </pathconvert> - <emma> <report sourcepath="${tested.project.source.absolute.dir}:${tested.project.lib.source.path.value}" verbosity="${verbosity}"> |