Use adb variable instead of direct command (#93293)
This commit is contained in:
parent
bfe9c59831
commit
a61c57add6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user