Better error message for android-tests workflow

See this link as an example how it will look in annotations:
https://github.com/pytorch/pytorch/actions/runs/2242670732
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76577
Approved by: https://github.com/linbinyu
This commit is contained in:
Sergii Dymchenko
2022-05-02 16:56:29 +00:00
committed by PyTorch MergeBot
parent b182c22e15
commit 9445609ee3

View File

@ -48,4 +48,9 @@ fi
echo "Waiting for emulator boot completed"
$ADB_PATH wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
$GRADLE_PATH -PABI_FILTERS=x86 -p $PYTORCH_ANDROID_DIR connectedAndroidTest
{
$GRADLE_PATH -PABI_FILTERS=x86 -p $PYTORCH_ANDROID_DIR connectedAndroidTest
} || {
echo "::error::Check https://github.com/pytorch/pytorch/tree/master/test/mobile/model_test to see how to fix the failed mobile test"
exit 1
}