From bc1f9722801f18e3be2a5375131e784fd3c97524 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 16 Feb 2017 11:15:34 -0500 Subject: [PATCH] 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 --- tests/f_pre_1970_date_encoding/script | 2 +- tests/t_quota_1on/script | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.3.1