Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/sbin/newfs_msdos Skip this test if the atf working dir...
details: https://anonhg.NetBSD.org/src/rev/2083ef8d8b52
branches: trunk
changeset: 970183:2083ef8d8b52
user: martin <martin%NetBSD.org@localhost>
date: Sun Mar 15 10:15:16 2020 +0000
description:
Skip this test if the atf working directory has not enough space
for the created image.
diffstat:
tests/sbin/newfs_msdos/t_create.sh | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 7a710c2d942d -r 2083ef8d8b52 tests/sbin/newfs_msdos/t_create.sh
--- a/tests/sbin/newfs_msdos/t_create.sh Sun Mar 15 07:56:19 2020 +0000
+++ b/tests/sbin/newfs_msdos/t_create.sh Sun Mar 15 10:15:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_create.sh,v 1.3 2014/01/05 12:59:03 martin Exp $
+# $NetBSD: t_create.sh,v 1.4 2020/03/15 10:15:16 martin Exp $
#
# Copyright (c) 2012 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -31,6 +31,11 @@
}
validfat32_body() {
+ AVAIL=$( df -m ${TMPDIR} | awk '{if (int($4) > 0) print $4}' )
+ if [ $AVAIL -lt 34 ]; then
+ atf_skip "not enough free space in working directory"
+ fi
+
atf_check -s eq:0 -o ignore -e ignore \
newfs_msdos -b 512 -C 33m -F 32 msdos.img
# fsck_msdos/newfs_msdos have been fixed
Home |
Main Index |
Thread Index |
Old Index