From df2df023bbe43af4eecb1cf0120ddbf46f35bee9 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 5 Dec 2015 00:16:19 +0100 Subject: [PATCH] Use a portable mechanism to determine if the filesystem is noatime --- Test/C02cond.ztst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 40bbf42..56b5662 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -154,7 +154,7 @@ ZTST_skip="[[ -N file ]] not supported on Cygwin" elif (( isnfs )); then ZTST_skip="[[ -N file ]] not supported with NFS" - elif test -f /etc/mtab && { grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then + elif { mount | grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') | grep -q noatime; } ; then ZTST_skip="[[ -N file ]] not supported with noatime file system" else [[ -N $newnewnew && ! -N $unmodified ]] -- 2.6.3