From patchwork Sat Jan 9 03:54:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia He X-Patchwork-Id: 7991811 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D9B7BEEE5 for ; Sat, 9 Jan 2016 03:55:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93775201C8 for ; Sat, 9 Jan 2016 03:55:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6DD7201DD for ; Sat, 9 Jan 2016 03:55:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750847AbcAIDzL (ORCPT ); Fri, 8 Jan 2016 22:55:11 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34702 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750785AbcAIDzK (ORCPT ); Fri, 8 Jan 2016 22:55:10 -0500 Received: by mail-oi0-f67.google.com with SMTP id x140so923455oif.1 for ; Fri, 08 Jan 2016 19:55:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nEKmyzjqlzYG3ZATrYTyfgF4w4cyWUSp9o7FfHGLl8g=; b=v4gzIfFkyEogaHABkpUYGmsdJczZJyjDJfNNlf4OVSzElE0ZFG2W+/13zVzbmPWwsX vSXhYTsrs3pvBLz1+KNobn/TkQC+jIaF/FkacTIqUsRsyvKWmKugbmnayBPbzHQjjhLb eLva5HGC4HK6+VTQBqrrqIfj+A4F60Y5yMNmuIEyE+XQRW0tI4gOqjJKKEoaQbFaOKFl NpHxj0zfoi0u/SfhrMdh0MdMxJ687lIFZxusPnZ+HRelm8dn+5Kt3/FiytXdmaPNQcBv TbzYSspYRzjun1sV3ZODI63Swq3ut4HQvdf6O9xJg3ksC7tY+abP64lSDPpPZfGBs/2j bXUg== X-Received: by 10.202.81.198 with SMTP id f189mr78846273oib.34.1452311710178; Fri, 08 Jan 2016 19:55:10 -0800 (PST) Received: from localhost.localdomain ([60.247.125.148]) by smtp.gmail.com with ESMTPSA id r63sm45372202oia.13.2016.01.08.19.55.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jan 2016 19:55:09 -0800 (PST) From: Jia He To: fstests@vger.kernel.org Cc: eguan@redhat.com, Jia He Subject: [PATCH V2 2/2] fstests: canonicalize the mount points by removing the trailing "/" Date: Sat, 9 Jan 2016 11:54:53 +0800 Message-Id: <1452311693-27529-3-git-send-email-hejianet@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452311693-27529-1-git-send-email-hejianet@gmail.com> References: <1452311693-27529-1-git-send-email-hejianet@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP removing all the trailing "/"s of mounting point name by readlink Suggested-by: Eryu Guan Signed-off-by: Jia He --- common/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/config b/common/config index e82d279..cb34fd7 100644 --- a/common/config +++ b/common/config @@ -551,5 +551,10 @@ if [ -z "$CONFIG_INCLUDED" ]; then [ -z "$FSCK_OPTIONS" ] && _fsck_opts fi +# canonicalize the mount points +# this follows symlinks and removes all trailing "/"s +export TEST_DIR=`readlink -e "$TEST_DIR"` +export SCRATCH_MNT=`readlink -e "$SCRATCH_MNT"` + # make sure this script returns success /bin/true