summaryrefslogtreecommitdiff
path: root/adb/coverage/gen_coverage.sh
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-05-12 05:32:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-05-12 05:32:48 +0000
commita227c19ef2f81c4daeb4ede9f8609614e44d37ee (patch)
tree7cb12d99803d142176cb2299476688420a3648fb /adb/coverage/gen_coverage.sh
parent8987016b1eb96003cb895014004696a7cbd9b133 (diff)
parent9f3064f26fd971eb7e81b78d48aae6aeee7ca143 (diff)
Merge changes Id8d9fa6c,I47d3ad50,I7cebbf75,Id10e320a
* changes: adbd: avoid compiling more code in the daemon. adb: don't run all of the tests again over TCP in coverage. adbd: respect ADB_TRACE on host adbd. adb: mark kMaxProcessNameLength as constexpr.
Diffstat (limited to 'adb/coverage/gen_coverage.sh')
-rwxr-xr-xadb/coverage/gen_coverage.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/coverage/gen_coverage.sh b/adb/coverage/gen_coverage.sh
index 3a5d1d22b5..43d45f0d8e 100755
--- a/adb/coverage/gen_coverage.sh
+++ b/adb/coverage/gen_coverage.sh
@@ -89,8 +89,9 @@ adb -t $TRANSPORT_ID wait-for-disconnect
adb connect $REMOTE
adb -s $REMOTE wait-for-device
-# Run test_device.py again.
-ANDROID_SERIAL=$REMOTE "$OUTPUT_DIR"/../test_device.py
+# Instead of running test_device.py again, which takes forever, do some I/O back and forth instead.
+dd if=/dev/zero bs=1024 count=10240 | adb -s $REMOTE raw sink:10485760
+adb -s $REMOTE raw source:10485760 | dd of=/dev/null bs=1024 count=10240
# Dump traces again.
adb disconnect $REMOTE