[kernel-tests] 25/73: Infrastructure clean up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

commit 5ce90087ac47e8600caa4ab3d9c6773c171b875e
Author: Justin M. Forbes <jforbes@xxxxxxxxxx>
Date:   Sun Jan 20 11:00:51 2013 -0600

    Infrastructure clean up
---
 default/defaultpass/{runtest.sh => runtest.sh.example} |  0
 minimal/minimalfail/runtest.sh                         |  5 -----
 minimal/minimalfail/runtest.sh.example                 |  5 +++++
 minimal/minimalpass/{runtest.sh => runtest.sh.example} |  0
 minimal/minimalskip/{runtest.sh => runtest.sh.example} |  0
 runtests.sh                                            | 12 ++++++++++++
 6 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/default/defaultpass/runtest.sh b/default/defaultpass/runtest.sh.example
similarity index 100%
rename from default/defaultpass/runtest.sh
rename to default/defaultpass/runtest.sh.example
diff --git a/minimal/minimalfail/runtest.sh b/minimal/minimalfail/runtest.sh
deleted file mode 100755
index 45312b3..0000000
--- a/minimal/minimalfail/runtest.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-echo "sample test from the minimal directory, should always pass"
-
-exit 32
diff --git a/minimal/minimalfail/runtest.sh.example b/minimal/minimalfail/runtest.sh.example
new file mode 100755
index 0000000..1efb53e
--- /dev/null
+++ b/minimal/minimalfail/runtest.sh.example
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+echo "sample test from the minimal directory, should always fail"
+
+exit 32
diff --git a/minimal/minimalpass/runtest.sh b/minimal/minimalpass/runtest.sh.example
similarity index 100%
rename from minimal/minimalpass/runtest.sh
rename to minimal/minimalpass/runtest.sh.example
diff --git a/minimal/minimalskip/runtest.sh b/minimal/minimalskip/runtest.sh.example
similarity index 100%
rename from minimal/minimalskip/runtest.sh
rename to minimal/minimalskip/runtest.sh.example
diff --git a/runtests.sh b/runtests.sh
index 924df4f..299ab92 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -5,6 +5,7 @@ topdir=$(pwd)
 logfile=$topdir/logs/kernel-test-$date.log
 verbose=n
 testset=default
+cleanrun=PASS
 
 kver=$(uname -r)
 release=$(cat /etc/redhat-release)
@@ -112,7 +113,18 @@ do
 				result=FAIL
 			esac
 			printf "%-65s%-8s\n" "$testname" "$result"
+			if [ "$result" == "FAIL" ]; then
+				cleanrun=FAIL
+			fi
 		fi
 		popd &>/dev/null
 	done
 done
+
+if [ "$cleanrun" == "FAIL" ]; then
+	printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
+	exit 1
+else
+	printf "\n%-65s%-8s\n" "Test suite complete" "$cleanrun"
+	exit 0
+fi

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




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux