From: Ian Campbell Subject: [PATCH OSSTEST 1/2] standalone: refactor out some useful bits of standalone-reset Date: Thu, 20 Mar 2014 16:21:21 +0000 Message-ID: <1395332482-5892-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 I sometimes want just these bits. I went with a new "sa" prefix, but I left standalone-reset alone since it is already reasonably well known. Signed-off-by: Ian Campbell --- README | 3 +++ sa-forget-flight | 39 +++++++++++++++++++++++++++++++++++++++ sa-init-db | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ standalone-reset | 30 ++---------------------------- 4 files changed, 100 insertions(+), 28 deletions(-) create mode 100755 sa-forget-flight create mode 100755 sa-init-db diff --git a/README b/README index a4d5aac..9a85549 100644 --- a/README +++ b/README @@ -158,6 +158,9 @@ sg-*: ? ts-*: Test Step scripts. +sa-*: Standalone mode. + + Jobs ==== diff --git a/sa-forget-flight b/sa-forget-flight new file mode 100755 index 0000000..65668f5 --- /dev/null +++ b/sa-forget-flight @@ -0,0 +1,39 @@ +#!/bin/bash + +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2014 Citrix Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +set -e + +usage(){ + cat <&2 + exit 1 +fi + +db="$1" +flight="$1" + +sqlite3 "$db" <. + +set -e + +usage(){ + cat <&2 + exit 1 +fi + +db="$1" + +sqlite3 "$db" <