From patchwork Fri Feb 3 11:05:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9553873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B10AF60405 for ; Fri, 3 Feb 2017 11:05:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2D9628427 for ; Fri, 3 Feb 2017 11:05:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 964822847A; Fri, 3 Feb 2017 11:05:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BAD428427 for ; Fri, 3 Feb 2017 11:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752377AbdBCLFu (ORCPT ); Fri, 3 Feb 2017 06:05:50 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:36677 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbdBCLFt (ORCPT ); Fri, 3 Feb 2017 06:05:49 -0500 Received: by mail-wj0-f195.google.com with SMTP id kq3so505976wjc.3 for ; Fri, 03 Feb 2017 03:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=84zdgZbAk65CmuQeVJbeoDhZt7NdKWFOB+it+26s168=; b=JeW7eiKpxOskbsdUE56HW1FpTu5fv7xBX4tedEij4dYNeA+XJdOurQ6aLpY1d2T7IC 0HDl5gqwrspIXwjuf3TRoxyVpNq+YOyww9c5vISy8gtStRvEprfIPYpaotZ4Srcg9HRr I86cet3cJq9tKpa4X0/5eS6IC+OuU7RKLsoun26JtBdjjXHH6xBca4JKDEM/X1GO1Tz7 cqDurqSo6kC5W95b7IAhW+bS4qcLL3zVe3VGOM7btE3J7/5gdD6u28T8AxJR0sIiw9s6 En2K4fluM7Q5ZxV4H094tgfocZAQUi7UFPLeaLdbMsXQxr06t+KBKyf8oc6x0j6bvIKM LziA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=84zdgZbAk65CmuQeVJbeoDhZt7NdKWFOB+it+26s168=; b=dzsw87glYLGU0+ES1ISlkY9Gk0+WOB+CEZHSOA8bWi8C5xHzRvTo7ISb0nw3y1PuwT s44eHFjvkMBdV7lIEjkAhxMz8Be6NyOY5LgUewlVfmWXUThOzL6aQsLFHHBbwI5XZM/v wVOYfl242v4CUxcCwo1NYfnSgC+qlBiTZJrrHD/0tVt6dOfiiewb+oxzNoFkydwe0k5j ErSUT98HjmN84Nph2+F0rXZm6VE3Uhl8Qe0zg0LkfNaf6ZtTtYp5AgdoB1g4qWHiRAfn 1dWvfdCuo/QzlakuERE2dDm+B0booPTvidS8vU+xuqBVD9QvejJjJBvGO070sMhJNVwN QdVg== X-Gm-Message-State: AIkVDXIgItRc5Gahg1dxGoxmjM2ZSCP/J/m5mpUgnE/t1XVtAJiI0iF1m9sql+wstAFqag== X-Received: by 10.223.160.180 with SMTP id m49mr11874716wrm.160.1486119948263; Fri, 03 Feb 2017 03:05:48 -0800 (PST) Received: from localhost.localdomain (bzq-79-176-143-83.red.bezeqint.net. [79.176.143.83]) by smtp.gmail.com with ESMTPSA id o81sm2423244wmb.14.2017.02.03.03.05.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 03:05:47 -0800 (PST) From: Amir Goldstein To: Eryu Guan Cc: fstests@vger.kernel.org Subject: [PATCH v2] generic/007: cleanup $TEST_DIR/$seq dir Date: Fri, 3 Feb 2017 13:05:37 +0200 Message-Id: <1486119937-2803-1-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Test generic/007 was failing after running test overlay/007, because the latter left behind a non empty directory named 007 in test dir and the former failed to mkdir a directory with the same name. Cleanup $TEST_DIR/$seq both at end of overlay/007 and beginning of generic/007 to avoid this collision. Signed-off-by: Amir Goldstein --- tests/generic/007 | 1 + tests/overlay/007 | 1 + 2 files changed, 2 insertions(+) v2: - Cleanup just $TEST_DIR/007 v1: - Cleanup $TEST_DIR/$seq* files after tests diff --git a/tests/generic/007 b/tests/generic/007 index 88cd6cc..cfa4554 100755 --- a/tests/generic/007 +++ b/tests/generic/007 @@ -64,6 +64,7 @@ while [ $i -le $num_filenames ]; do let i=$i+1 done +rm -rf $TEST_DIR/$seq mkdir $TEST_DIR/$seq cd $TEST_DIR/$seq $here/src/nametest -l $sourcefile -s $seed -i $iterations -z diff --git a/tests/overlay/007 b/tests/overlay/007 index ccf2b75..ed7914b 100755 --- a/tests/overlay/007 +++ b/tests/overlay/007 @@ -37,6 +37,7 @@ _cleanup() { cd / rm -f $tmp.* + rm -rf $TEST_DIR/$seq } # get standard environment, filters and checks