Add --test flag
svn path=/trunk/; revision=622
This commit is contained in:
parent
7714694a59
commit
cccf5459c3
|
@ -2,6 +2,9 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Id$
|
||||
|
||||
13 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
||||
Add --test flag
|
||||
|
||||
02 Mar 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
||||
Process kconfig lines in a loop to handle specs with multiple kernels
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ PID=$$
|
|||
config_file=
|
||||
verbose=0
|
||||
keep_tmpdir=0
|
||||
testing=0
|
||||
|
||||
usage() {
|
||||
msg=$1
|
||||
|
@ -21,6 +22,7 @@ Options:
|
|||
-c|--config Specifies the config file to use (required)
|
||||
--verbose Send output of commands to console as well as log
|
||||
-k|--keep-tmpdir Don't remove temp dir when build finishes
|
||||
-t|--test Stop after mangling specs and copying files
|
||||
-h|--help Show this message and quit
|
||||
|
||||
EOH
|
||||
|
@ -87,6 +89,9 @@ do
|
|||
-k|--keep-tmpdir)
|
||||
keep_tmpdir=1
|
||||
;;
|
||||
-t|--test)
|
||||
testing=1
|
||||
;;
|
||||
-*)
|
||||
echo "You have specified an invalid option: ${a}"
|
||||
usage
|
||||
|
@ -171,6 +176,11 @@ for i in $(find -name '*.spec'); do
|
|||
fi
|
||||
done
|
||||
|
||||
if [ "${testing}" -eq 1 ]; then
|
||||
echo "Exiting due to --test"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Create snapshot
|
||||
if ! run_cmd "catalyst -c ${CATALYST_CONFIG} -s ${DATESTAMP}" "${TMPDIR}/log/snapshot.log"; then
|
||||
send_email "Catalyst build error - snapshot" "" "${TMPDIR}/log/snapshot.log"
|
||||
|
|
Loading…
Reference in a new issue