Use adb variable instead of direct command (#93293)

This commit is contained in:
Gary Qian
2021-11-08 21:37:48 -08:00
committed by GitHub
parent bfe9c59831
commit a61c57add6

View File

@@ -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