From: Theodore Ts'o Date: Thu, 16 Feb 2017 16:15:34 +0000 (-0500) Subject: tests: don't use "debugfs -f /dev/stdin" X-Git-Tag: v1.43.5~88 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=bc1f9722801f18e3be2a5375131e784fd3c97524;p=tools%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. Reported-by: Rical Jasan Signed-off-by: Theodore Ts'o --- diff --git a/tests/f_pre_1970_date_encoding/script b/tests/f_pre_1970_date_encoding/script index 06ff98a..952e550 100644 --- a/tests/f_pre_1970_date_encoding/script +++ b/tests/f_pre_1970_date_encoding/script @@ -18,7 +18,7 @@ create_file_with_xtime_and_extra() { echo "set_inode_field $name $xtime @$time" echo "set_inode_field $name ${xtime}_extra $extra" done - } | $DEBUGFS -w -f /dev/stdin $TMPFILE >> $OUT 2>&1 + } | $DEBUGFS -w $TMPFILE >> $OUT 2>&1 } get_file_xtime_and_extra() { diff --git a/tests/t_quota_1on/script b/tests/t_quota_1on/script index ed17f33..3704d7a 100644 --- a/tests/t_quota_1on/script +++ b/tests/t_quota_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 uid 500 set_inode_field file1 gid 500