From patchwork Wed Feb 29 13:25:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 143722 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 12A0FB6ED0 for ; Thu, 1 Mar 2012 00:26:34 +1100 (EST) Received: from localhost ([::1]:43699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2jY7-0000DG-Ow for incoming@patchwork.ozlabs.org; Wed, 29 Feb 2012 08:26:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2jXS-0007df-35 for qemu-devel@nongnu.org; Wed, 29 Feb 2012 08:26:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2jXJ-0006QP-Kl for qemu-devel@nongnu.org; Wed, 29 Feb 2012 08:25:49 -0500 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:59802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2jXJ-0006Po-CE for qemu-devel@nongnu.org; Wed, 29 Feb 2012 08:25:41 -0500 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Feb 2012 13:25:35 -0000 Received: from d06nrmr1507.portsmouth.uk.ibm.com (9.149.38.233) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 29 Feb 2012 13:25:34 -0000 Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1TDPX6M2404408 for ; Wed, 29 Feb 2012 13:25:33 GMT Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1TDPXOg020199 for ; Wed, 29 Feb 2012 06:25:33 -0700 Received: from localhost (gbv55814.uk.ibm.com [9.146.209.27]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1TDPW5L020196; Wed, 29 Feb 2012 06:25:33 -0700 From: Stefan Hajnoczi To: Date: Wed, 29 Feb 2012 13:25:20 +0000 Message-Id: <1330521922-32540-2-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1330521922-32540-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1330521922-32540-1-git-send-email-stefanha@linux.vnet.ibm.com> x-cbid: 12022913-0342-0000-0000-000001087B94 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.111 Cc: Kevin Wolf , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH v2 1/3] qemu-iotests: export TEST_DIR for non-bash tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Since qemu-iotests may need to create large image files it is possible to specify the test directory. The TEST_DIR variable needs to be exported so non-bash tests can make use of it. Signed-off-by: Stefan Hajnoczi --- tests/qemu-iotests/common.config | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config index d07f435..a220684 100644 --- a/tests/qemu-iotests/common.config +++ b/tests/qemu-iotests/common.config @@ -121,6 +121,8 @@ if [ ! -d "$TEST_DIR" ]; then exit 1 fi +export TEST_DIR + _readlink() { if [ $# -ne 1 ]; then