Do not update TEST_MAPPING for Rust crates.
Updating these files takes a long time since we need to regenerate the
Bazel index for each crate, which greatly slows down updater runs. We
will instead update the TEST_MAPPING files all at once after an
updater run.
Test: Update a crate.
Change-Id: Iefcf27a4c4ffd0cd12cdf55edc2c51e624c2ba92
diff --git a/update_package.sh b/update_package.sh
index d29f7c5..4715db7 100644
--- a/update_package.sh
+++ b/update_package.sh
@@ -93,14 +93,6 @@
echo "Swapping" > $tmp_file
fi
-if [ -f $tmp_dir/Cargo.toml -a -f $tmp_dir/Android.bp ]
-then
- echo "Updating TEST_MAPPING..."
- UCT="$root_dir/development/scripts/update_crate_tests.py"
- [ -f "$UCT" ] || abort "ERROR: cannot find $UCT"
- $UCT $external_dir
-fi
-
cd $external_dir
git add .