Update error messages in ApkPackageNameCheck
Bug: 232287472
Test: unittests
Change-Id: I955ce83d4ec03480e64e57eb1c989d2a5e8947bb
(cherry picked from commit 642c03b32a8f7704dba18923e1f5b83b79f0dafa)
Merged-In: I955ce83d4ec03480e64e57eb1c989d2a5e8947bb
diff --git a/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ApkPackageNameCheck.java b/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ApkPackageNameCheck.java
index 90ffb97..841357b 100644
--- a/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ApkPackageNameCheck.java
+++ b/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ApkPackageNameCheck.java
@@ -99,7 +99,7 @@
"File %s[32/64] wasn't found in module "
+ "dependencies while "
+ "it's expected to be pushed as part"
- + " of %s.",
+ + " of %s. Make sure that it's added in the Android.bp file of the module under 'data' field.",
path, config.getName()));
}
}
@@ -115,7 +115,7 @@
String.format(
"File %s wasn't found in module dependencies "
+ "while it's expected to be pushed "
- + "as part of %s.",
+ + "as part of %s. Make sure that it's added in the Android.bp file of the module under 'data' field.",
path, config.getName()));
}
}
@@ -129,7 +129,7 @@
File apkFile = FileUtil.findFile(config.getParentFile(), apkName);
if (apkFile == null || !apkFile.exists()) {
fail(String.format("Module %s is trying to install %s which does not "
- + "exists in testcases/", config.getName(), apkName));
+ + "exists in testcases/. Make sure that it's added in the Android.bp file of the module under 'data' field.", config.getName(), apkName));
}
AaptParser res = AaptParser.parse(apkFile);
assertNotNull(res);