From: Ingo Brückl Date: Sat, 31 Mar 2018 20:59:48 +0000 (-0400) Subject: tests: don't use "debugfs -f /dev/stdin" X-Git-Tag: v1.44.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c52d7eff8c5fb38900e2c702e92f88c6b934c6f2;p=thirdparty%2Fe2fsprogs.git tests: don't use "debugfs -f /dev/stdin" 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 Signed-off-by: Theodore Ts'o --- diff --git a/tests/f_large_dir/script b/tests/f_large_dir/script index 0b5fdfff7..605706ce2 100644 --- a/tests/f_large_dir/script +++ b/tests/f_large_dir/script @@ -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=$? diff --git a/tests/t_project_1on/script b/tests/t_project_1on/script index 923218823..606963f1d 100644 --- a/tests/t_project_1on/script +++ b/tests/t_project_1on/script @@ -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 diff --git a/tests/t_project_3on/script b/tests/t_project_3on/script index 1143ba4cc..5eaaa1537 100644 --- a/tests/t_project_3on/script +++ b/tests/t_project_3on/script @@ -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