summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Joe Onorato <joeo@google.com> 2024-05-24 14:25:57 -0700
committer Joe Onorato <joeo@google.com> 2024-05-24 14:37:51 -0700
commit1487ee1dba7fe3bea674703572a615c5d5fa3bfa (patch)
tree30167653c636c7e980dffdb95c3465bf38eaa40e
parent0e68f70ab772528203cebc690d826f5d3e42319d (diff)
Delete envsetup.sh functions that haven't worked for a long time.
- Bugreports don't go to /sdcard/bureports, and adb bugreport has a much better UI now. - I don't hink smoketest hasn't worked since the original Android git contribution, based on the path names in this function. Bug: 340648588 Test: treehugger Change-Id: Ie450f9740aa3fe7af50d64c2d9d7da56d6d3e39a
-rw-r--r--envsetup.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/envsetup.sh b/envsetup.sh
index f22739a0a0..647c106380 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -847,44 +847,6 @@ function runhat()
hat -JXmx512m $localFile
}
-function getbugreports()
-{
- local reports=(`adb shell ls /sdcard/bugreports | tr -d '\r'`)
-
- if [ ! "$reports" ]; then
- echo "Could not locate any bugreports."
- return
- fi
-
- local report
- for report in ${reports[@]}
- do
- echo "/sdcard/bugreports/${report}"
- adb pull /sdcard/bugreports/${report} ${report}
- gunzip ${report}
- done
-}
-
-function smoketest()
-{
- if [ ! "$ANDROID_PRODUCT_OUT" ]; then
- echo "Couldn't locate output files. Try running 'lunch' first." >&2
- return
- fi
- local T=$(gettop)
- if [ ! "$T" ]; then
- echo "Couldn't locate the top of the tree. Try setting TOP." >&2
- return
- fi
-
- (\cd "$T" && mmm tests/SmokeTest) &&
- adb uninstall com.android.smoketest > /dev/null &&
- adb uninstall com.android.smoketest.tests > /dev/null &&
- adb install $ANDROID_PRODUCT_OUT/data/app/SmokeTestApp.apk &&
- adb install $ANDROID_PRODUCT_OUT/data/app/SmokeTest.apk &&
- adb shell am instrument -w com.android.smoketest.tests/android.test.InstrumentationTestRunner
-}
-
function godir () {
if [[ -z "$1" ]]; then
echo "Usage: godir <regex>"