This is an automated email from the git hooks/post-receive script.

jforbes pushed a commit to branch master
in repository kernel-tests.

commit 360a7789328efb00479e4ecc942db17fb5cea118
Author: Justin M. Forbes <[email protected]>
Date:   Fri Apr 17 17:15:38 2015 -0500

    Add config example for automatic submission of logs
---
 config.example   | 37 +++++++++++++++++++++++++++++++++++++
 fedora_submit.py |  0
 2 files changed, 37 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
kernel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to