This is an automated email from the git hooks/post-receive script.
jforbes pushed a commit to branch master
in repository kernel-tests.
commit d44e0fd40222b8ddef7baaac93d133af633591fd
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Tue Aug 12 10:11:30 2014 -0500
Changes for packaging and config
---
.gitignore | 1 +
runtests.sh | 26 +++++++++++++++++++-------
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/.gitignore b/.gitignore
index 2ccc518..dc05b62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*.o
logs
*.sw?
+.config
diff --git a/runtests.sh b/runtests.sh
index f0b3fb5..0bfdf1b 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -3,12 +3,18 @@
# Licensed under the terms of the GNU GPL License version 2
date=$(date +%s)
-topdir=$(pwd)
-logfile=$topdir/logs/kernel-test-$date.log.txt
+logdir=$(pwd)/logs
+logfile=$logdir/kernel-test-$date.log.txt
verbose=n
testset=default
cleanrun=PASS
failedtests=None
+commit=n
+commithook=/usr/bin/true
+
+if [ -f ./.config ]; then
+ source ./.config
+fi
kver=$(uname -r)
release=$(cat /etc/redhat-release)
@@ -24,8 +30,8 @@ fi
unset MALLOC_CHECK_
unset MALLOC_PERTURB_
-if [ ! -d "$topdir/logs" ] ; then
- mkdir $topdir/logs
+if [ ! -d "$logdir" ] ; then
+ mkdir $logdir
fi
args=y
@@ -120,7 +126,7 @@ do
if [ "$result" == "FAIL" ]; then
cleanrun=FAIL
if [ "$failedtests" == "None" ]; then
- failedtests="$testname"
+ failedtests="$testname"
else
failedtests="$failedtests $testname"
fi
@@ -134,8 +140,14 @@ done
sed -i "s,RESULTHOLDER,$cleanrun\nFailed Tests: $failedtests,g" $logfile
printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
-printf "\nYour log file is located at: $logfile\n"
-printf "Submit your results to:
https://apps.fedoraproject.org/kerneltest/\n"
+if [ "$commit" == "y" ]; then
+ printf "\nYour log file is being submitted\n"
+ $commithook
+else
+ printf "\nYour log file is located at: $logfile\n"
+ printf "Submit your results to:
https://apps.fedoraproject.org/kerneltest/\n"
+fi
+
if [ "$cleanrun" == "FAIL" ]; then
exit 1
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.