diff options
author | Aaron Holden <aaronholden@google.com> | 2016-03-10 13:02:32 -0800 |
---|---|---|
committer | Aaron Holden <aaronholden@google.com> | 2016-03-10 15:27:02 -0800 |
commit | 65eac462137e8afb49a28361364466eaa24b5886 (patch) | |
tree | f9ac303f63e252ef954692d47bae05ba1dbf0919 /libs | |
parent | 3a98d49416834c9170b1b3f4d18e9203cacda68f (diff) | |
download | platform_cts-65eac462137e8afb49a28361364466eaa24b5886.tar.gz platform_cts-65eac462137e8afb49a28361364466eaa24b5886.tar.bz2 platform_cts-65eac462137e8afb49a28361364466eaa24b5886.zip |
Add helpful logging to MigrationHelper class
Change-Id: Ife4eaec75364271beda3797f07ef16b54fa7bb72
Diffstat (limited to 'libs')
-rw-r--r-- | libs/migration/src/com/android/cts/migration/MigrationHelper.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/migration/src/com/android/cts/migration/MigrationHelper.java b/libs/migration/src/com/android/cts/migration/MigrationHelper.java index 5fa0ff8d324..0595486c85f 100644 --- a/libs/migration/src/com/android/cts/migration/MigrationHelper.java +++ b/libs/migration/src/com/android/cts/migration/MigrationHelper.java @@ -1,9 +1,11 @@ package com.android.cts.migration; import com.android.tradefed.build.IBuildInfo; +import com.android.tradefed.log.LogUtil.CLog; import java.io.File; import java.io.FileNotFoundException; +import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -27,7 +29,9 @@ public class MigrationHelper { Method method = cls.getMethod("getTestsDir"); File dir = (File) method.invoke(instance); File file = new File(dir, filename); + CLog.i("Looking for test file %s in dir %s", filename, dir.getAbsolutePath()); if (file.exists()) { + CLog.i("File %s found", filename); return file; } } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | @@ -40,7 +44,9 @@ public class MigrationHelper { Object helper = builder.invoke(null, mBuild); Method method = cls.getMethod("getTestApp", String.class); File file = (File) method.invoke(helper, filename); + CLog.i("Looking for test file %s as %s", filename, file.getAbsolutePath()); if (file.exists()) { + CLog.i("File %s found", filename); return file; } } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException | |