Unverified Commit a61c57ad authored by Gary Qian's avatar Gary Qian Committed by GitHub

Use adb variable instead of direct command (#93293)

parent bfe9c598
......@@ -39,17 +39,18 @@ while read LOGLINE
do
if [[ "${LOGLINE}" == *"Running deferred code"* ]]; then
echo "Found ${LOGLINE}"
pkill -P $$
echo "All tests passed."
pkill -P $$
exit 0
fi
# Timeout if expected log not found
current_time=$(date +%s)
if [[ $((current_time - script_start_time_seconds)) -ge 150 ]]; then
echo "Failure: Deferred component did not load."
pkill -P $$
exit 1
fi
done < <(adb logcat -T "$script_start_time")
done < <($adb_path logcat -T "$script_start_time")
echo "Failure: Deferred component did not load."
exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment