Module Name: src
Committed By: martin
Date: Sun Mar 15 10:15:16 UTC 2020
Modified Files:
src/tests/sbin/newfs_msdos: t_create.sh
Log Message:
Skip this test if the atf working directory has not enough space
for the created image.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/sbin/newfs_msdos/t_create.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/sbin/newfs_msdos/t_create.sh
diff -u src/tests/sbin/newfs_msdos/t_create.sh:1.3 src/tests/sbin/newfs_msdos/t_create.sh:1.4
--- src/tests/sbin/newfs_msdos/t_create.sh:1.3 Sun Jan 5 12:59:03 2014
+++ src/tests/sbin/newfs_msdos/t_create.sh Sun Mar 15 10:15:16 2020
@@ -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_head() {
}
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