summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2022-01-10 10:13:39 -0800
committerJoel Galenson <jgalenson@google.com>2022-01-10 10:13:39 -0800
commiteef57dbf3734f57c538558ef5118b8faa3b7f3d1 (patch)
tree881b939d5cde9cdea5e2fce1b50008da8e6dd8ce
parent26dbc6db75fb2e3b0234099b31c867f8f7afd8f1 (diff)
downloadshared_library-eef57dbf3734f57c538558ef5118b8faa3b7f3d1.tar.gz
Use new cargo2android.py feature to remove a patch.
Test: Run cargo2android.py. Change-Id: I117461d6b1b848bff3eadc00147114a2056f981d
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json2
-rw-r--r--patches/Android.bp.patch17
3 files changed, 1 insertions, 20 deletions
diff --git a/Android.bp b/Android.bp
index 28ea619..71ece12 100644
--- a/Android.bp
+++ b/Android.bp
@@ -66,8 +66,6 @@ rust_test {
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
- // Manually disabled as these tests depend on specific graphics libraries
- // being available on the machine running the tests.
test_options: {
unit_test: false,
},
diff --git a/cargo2android.json b/cargo2android.json
index bbea40c..6e68088 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -4,7 +4,7 @@
"com.android.virt"
],
"device": true,
- "patch": "patches/Android.bp.patch",
+ "no-presubmit": true,
"run": true,
"tests": true
} \ No newline at end of file
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
deleted file mode 100644
index 32794df..0000000
--- a/patches/Android.bp.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/Android.bp b/Android.bp
-index 3e82eff..550133f 100644
---- a/Android.bp
-+++ b/Android.bp
-@@ -35,9 +35,11 @@ rust_test {
- srcs: ["src/lib.rs"],
- test_suites: ["general-tests"],
- auto_gen_config: true,
-+ // Manually disabled as these tests depend on specific graphics libraries
-+ // being available on the machine running the tests.
- test_options: {
-- unit_test: true,
-+ unit_test: false,
- },
- edition: "2015",
- rustlibs: [
-