[Thread] add Android.bp format to make-pretty.sh
There are sometimes gerrit warnings on Android.bp file format: ``` Analyzer Description: Formats Android.bp files. Owner: soong-team@google.com This file is not formatted. Run prebuilts/build-tools/linux-x86/bin/bpfmt -w {filename} to format the file, or apply the suggested fix. ``` This commit adds the suggested format script to make-pretty.sh to avoid the warning. Change-Id: I8a691b1e6af873e8c43e34ed3168203d469eee1c
This commit is contained in:
parent
8f9544539b
commit
c73dd5aa23
3 changed files with 4 additions and 2 deletions
|
|
@ -3,5 +3,7 @@
|
|||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
GOOGLE_JAVA_FORMAT=$SCRIPT_DIR/../../../../../prebuilts/tools/common/google-java-format/google-java-format
|
||||
ANDROID_BP_FORMAT=$SCRIPT_DIR/../../../../../prebuilts/build-tools/linux-x86/bin/bpfmt
|
||||
|
||||
$GOOGLE_JAVA_FORMAT --aosp -i $(find $SCRIPT_DIR/../ -name "*.java")
|
||||
$ANDROID_BP_FORMAT -w $(find $SCRIPT_DIR/../ -name "*.bp")
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ android_test {
|
|||
libs: [
|
||||
"android.test.base",
|
||||
"android.test.runner",
|
||||
"framework-connectivity-module-api-stubs-including-flagged"
|
||||
"framework-connectivity-module-api-stubs-including-flagged",
|
||||
],
|
||||
// Test coverage system runs on different devices. Need to
|
||||
// compile for all architectures.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ android_test {
|
|||
manifest: "AndroidManifest.xml",
|
||||
defaults: [
|
||||
"framework-connectivity-test-defaults",
|
||||
"ThreadNetworkIntegrationTestsDefaults"
|
||||
"ThreadNetworkIntegrationTestsDefaults",
|
||||
],
|
||||
test_suites: [
|
||||
"general-tests",
|
||||
|
|
|
|||
Loading…
Reference in a new issue