From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20284 invoked by alias); 26 Feb 2012 15:41:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30270 Received: (qmail 12714 invoked from network); 26 Feb 2012 15:41:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at altlinux.org does not designate permitted sender hosts) From: "Alexey I. Froloff" To: Zsh list Cc: "Alexey I. Froloff" Subject: [PATCH] Ignore df errors Date: Sun, 26 Feb 2012 19:33:36 +0400 Message-Id: <1330270416-15356-1-git-send-email-raorn@altlinux.org> X-Mailer: git-send-email 1.7.7.5 From: "Alexey I. Froloff" --- Test/C02cond.ztst | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 5742755..494261e 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -139,7 +139,7 @@ elif [[ "$(find . -prune -fstype nfs 2>/dev/null)" == "." ]]; then print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)" true - elif test -f /etc/mtab && { grep $(df . | tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then + elif test -f /etc/mtab && { grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with noatime file system)" true else -- 1.7.7.5