Skip to content

Commit ee2fb49

Browse files
huydhnfacebook-github-bot
authored andcommitted
Just print Android instrument log when the test passes (#5280)
Summary: This should make it easier to reuse the test spec on Minibench where we don't need to rely on instrument tests to run the benchmark anymore while just keeping it to satisfy AWS as one of its required input. Reviewed By: kirklandsign Differential Revision: D62521107 Pulled By: huydhn
1 parent 6328d41 commit ee2fb49

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

examples/demo-apps/android/LlamaDemo/android-llm-device-farm-test-spec.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,7 @@ phases:
6363
# Check for this last to make sure that there is no failure
6464
elif [ $TESTS_PASSED -ne 0 ];
6565
then
66-
OBSERVED_TPS=$(grep "INSTRUMENTATION_STATUS: TPS=" $INSTRUMENT_LOG | tail -n 1)
67-
68-
if [ -n "${OBSERVED_TPS}" ];
69-
then
70-
echo "[PyTorch] ${OBSERVED_TPS}";
71-
else
72-
echo "[PyTorch] Test passes but couldn't find the observed TPS from instrument log";
73-
fi
66+
cat "${INSTRUMENT_LOG}"
7467
fi;
7568
7669
# Run the new generic benchmark activity https://developer.android.com/tools/adb#am

0 commit comments

Comments
 (0)