Repository : http://git.fedorahosted.org/cgit/kernel-tests.git On branch : master >--------------------------------------------------------------- commit 360a7789328efb00479e4ecc942db17fb5cea118 Author: Justin M. Forbes <jforbes@xxxxxxxxxx> Date: Fri Apr 17 17:15:38 2015 -0500 Add config example for automatic submission of logs >--------------------------------------------------------------- config.example | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/config.example b/config.example new file mode 100644 index 0000000..51a2fd1 --- /dev/null +++ b/config.example @@ -0,0 +1,37 @@ +# Fedora Result Submit Method +# Default is no submit. Other options are 'anonymous' where we get results +# without requiring FAS authentication, or 'authenticated' which will use +# FAS authentication to upload and give you credit towards Fedora Badges. + +submit=none +# submit=anonymous +# submit=authenticated + + +# FAS User credentials. +# Storing your FAS password here is technically possible, but not advisable +# for security seasons + +# username='' +# password='' + +# **************** Nothing to edit below here **************** + +case $submit in +anonymous) + commit=y + commithook="curl -H 'Expect:' -F "user=anonymous" -F "test_result=@$logfile\;type=text/x-log" https://apps.fedoraproject.org/kerneltest/upload/anonymous + ;; +authenticated) + commit=y + if [ -n "$username" ]; then + username="-u $username" + fi + if [ -n "$password" ]; then + password="-p $password" + fi + commithook="fedora_submit.py $username $password -l $logfile" + ;; +*) + commithook=/usr/bin/true +esac diff --git a/fedora_submit.py b/fedora_submit.py old mode 100644 new mode 100755 _______________________________________________ kernel mailing list kernel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/kernel