You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/06/08 08:33:23 UTC
[2/3] incubator-weex git commit: * [android] fix junit case
* [android] fix junit case
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2e6d56ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2e6d56ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2e6d56ca
Branch: refs/heads/0.14-dev
Commit: 2e6d56ca4c6a20e4d11f8392ed5ce133ec0441fa
Parents: 884257d
Author: sospartan <so...@apache.org>
Authored: Thu Jun 8 11:39:28 2017 +0800
Committer: sospartan <so...@apache.org>
Committed: Thu Jun 8 11:39:28 2017 +0800
----------------------------------------------------------------------
android/run-ci.sh | 2 +-
.../src/test/java/com/taobao/weex/utils/WXFileUtilsTest.java | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2e6d56ca/android/run-ci.sh
----------------------------------------------------------------------
diff --git a/android/run-ci.sh b/android/run-ci.sh
index b3b1612..35ef692 100755
--- a/android/run-ci.sh
+++ b/android/run-ci.sh
@@ -1,7 +1,7 @@
#!/bin/sh -eu
# will not exist if err
set -e
-./gradlew assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true -PtargetSDK=19 -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8
+./gradlew assembleDebug :weex_sdk:testDebugUnitTest --info -PdisableCov=true -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.jvmargs="-Xmx512m -XX:+HeapDumpOnOutOfMemoryError" -Dfile.encoding=UTF-8
echo 'Android Unit Test Done!'
#COLUMNS=2000 ps -m -o pid,rss,command > sdk/build/reports/memdump.txt
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2e6d56ca/android/sdk/src/test/java/com/taobao/weex/utils/WXFileUtilsTest.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/test/java/com/taobao/weex/utils/WXFileUtilsTest.java b/android/sdk/src/test/java/com/taobao/weex/utils/WXFileUtilsTest.java
index fdd0909..64a0720 100644
--- a/android/sdk/src/test/java/com/taobao/weex/utils/WXFileUtilsTest.java
+++ b/android/sdk/src/test/java/com/taobao/weex/utils/WXFileUtilsTest.java
@@ -44,11 +44,12 @@ public class WXFileUtilsTest {
@Test
public void testLoadFileContent() throws Exception {
- File folder = new File("build/intermediates/bundles/debug");
+ File folder = new File("build/intermediates/bundles/debug/assets/");
if(!folder.exists()){
- folder = new File("build/intermediates/bundles/release");
+ folder = new File("build/intermediates/bundles/debug/assets/");
+ folder.mkdirs();
}
- File file = new File(folder,"assets/test");
+ File file = new File(folder,"test");
System.out.println(file.getAbsolutePath());
if(!file.exists()){
file.createNewFile();