upload-error-report: add script to upload errors

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2020-08-28 12:50:22 -07:00
parent 5efa53b2b2
commit 613da4ff35

26
scripts/upload-error-report Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
ERR_REPORT_USERNAME=$1
ERR_REPORT_EMAIL=$2
BUILDDIR=$3
shift
shift
shift
if [ ! -e $BUILDDIR ]; then
exit 0
fi
cd $BUILDDIR/../poky
if [ -d $BUILDDIR/tmp/log/error-report/ ]; then
echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
. ./oe-init-build-env $BUILDDIR
for x in `ls $BUILDDIR/tmp/log/error-report/ | grep error_report_`; do
send-error-report -y tmp/log/error-report/$x
done
fi