From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST] standalone: Handle multiple configuration files. Date: Wed, 5 Nov 2014 10:41:24 +0000 Message-ID: <1415184084-14650-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org OSSTEST_CONFIG can actually be a colon separate list of files, so take this into account when sanity checking it. Signed-off-by: Ian Campbell --- standalone | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/standalone b/standalone index c1139f8..caf3fd5 100755 --- a/standalone +++ b/standalone @@ -112,10 +112,19 @@ if [ ! -f standalone.db ] ; then exit 1 fi -if [ -z "$config" -o ! -r "$config" ] ; then - echo "Cannot read config." >&2 +if [ -z "$config" ] ; then + echo "No config specified." >&2 exit 1 fi +IFS_saved=$IFS +IFS=: +for c in $config ; do + if [ -z "$c" -o ! -r "$c" ] ; then + echo "Cannot read config $c." >&2 + exit 1 + fi +done +IFS=$IFS_saved need_flight() { if [ -z "$flight" ] ; then -- 2.1.1