From c52d7eff8c5fb38900e2c702e92f88c6b934c6f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20Br=C3=BCckl?= Date: Sat, 31 Mar 2018 16:59:48 -0400 Subject: [PATCH] tests: don't use "debugfs -f /dev/stdin" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/f_large_dir/script | 2 +- tests/t_project_1on/script | 2 +- tests/t_project_3on/script | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/f_large_dir/script b/tests/f_large_dir/script index 0b5fdff..605706c 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 9232188..606963f 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 1143ba4..5eaaa15 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 -- 1.8.3.1