Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/bin/sh Make sure we have enough free inodes before run...
details: https://anonhg.NetBSD.org/src/rev/33d9f175cfb4
branches: trunk
changeset: 461813:33d9f175cfb4
user: martin <martin%NetBSD.org@localhost>
date: Wed Jul 10 05:57:43 2019 +0000
description:
Make sure we have enough free inodes before running the filename_expansion
test.
diffstat:
tests/bin/sh/t_patterns.sh | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r e7c2036d9aab -r 33d9f175cfb4 tests/bin/sh/t_patterns.sh
--- a/tests/bin/sh/t_patterns.sh Tue Jul 09 22:23:48 2019 +0000
+++ b/tests/bin/sh/t_patterns.sh Wed Jul 10 05:57:43 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_patterns.sh,v 1.4 2018/11/18 13:41:24 kre Exp $
+# $NetBSD: t_patterns.sh,v 1.5 2019/07/10 05:57:43 martin Exp $
#
# Copyright (c) 2018 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -182,6 +182,8 @@
atf_require_prog mv
atf_require_prog rm
atf_require_prog mkdir
+ atf_require_prog df
+ atf_require_prog awk
reset filename_expansion
@@ -194,6 +196,11 @@
# save inodes, but would require running "ln" many times, so
# would be a lot slower.
+ free_inodes=$( df -i . | awk '/^Filesystem/{next}; { print $7 }' )
+ if [ $free_inodes -lt 17000 ]; then
+ atf_skip "not enough space"
+ fi
+
# This should work on a case insensitive, but preserving,
# filesystem - but case sensitive filesystems are preferred.
Home |
Main Index |
Thread Index |
Old Index