]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: don't use "debugfs -f /dev/stdin"
authorIngo Brückl <ib@wupperonline.de>
Sat, 31 Mar 2018 20:59:48 +0000 (16:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 31 Mar 2018 20:59:48 +0000 (16:59 -0400)
Don't use "debugfs -f /dev/stdin" for portability reasons --- not all
systems have /dev/stdin. Simply dropping "-f /dev/stdin" works just
fine.

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_large_dir/script
tests/t_project_1on/script
tests/t_project_3on/script

index 0b5fdfff7f1d3a5371a816c9b11ae74dbab95258..605706ce203832c7337d7448de50f41d83dc3e29 100644 (file)
@@ -32,7 +32,7 @@ $MKE2FS -b 1024 -O large_dir,uninit_bg,dir_nlink -F $TMPFILE 460800 \
            printf "ln foofile %0255X\n" $i
            i=$(($i + 1))
        done
-} | $DEBUGFS -w -f /dev/stdin $TMPFILE > /dev/null 2>&1
+} | $DEBUGFS -w $TMPFILE > /dev/null 2>&1
 
 $E2FSCK -yfD $TMPFILE > $OUT.new 2>&1
 status=$?
index 9232188231a7631aa11a1168d50e7c47fdf1dafc..606963f1d8d5aa1ed3b1d696004b877185f2dfac 100644 (file)
@@ -14,7 +14,7 @@ if [ "$status" != 0 ] ; then
 fi
 
 dd if=/dev/zero of=$TMPFILE.2 bs=1048576 count=1 >> $test_name.log 2>&1
-cat <<- EOF | $DEBUGFS -w -f /dev/stdin $TMPFILE >> $test_name.log 2>&1
+cat <<- EOF | $DEBUGFS -w $TMPFILE >> $test_name.log 2>&1
        write $TMPFILE.2 file1
        set_inode_field file1 projid 500
 EOF
index 1143ba4cc2f80968f6e79e6daca08f0608154225..5eaaa15373f1754f9d064e4ce6f9fb95d01e3063 100644 (file)
@@ -14,7 +14,7 @@ if [ "$status" != 0 ] ; then
 fi
 
 dd if=/dev/zero of=$TMPFILE.2 bs=1048576 count=1 >> $test_name.log 2>&1
-cat <<- EOF | $DEBUGFS -w -f /dev/stdin $TMPFILE >> $test_name.log 2>&1
+cat <<- EOF | $DEBUGFS -w $TMPFILE >> $test_name.log 2>&1
        write $TMPFILE.2 file1
        set_inode_field file1 projid 500
 EOF