ports/sysutils/e2fsprogs/files/patch-tests_r__inline__xattr_script
Matthias Andree 7841256d5c Remove GNUism in grep basic regular expression in self-test.
Versus Kyle's submission, replace "egrep" by "grep -E" to avoid
reintroducing deprecated tools.

PR:		218614
Submitted by:	Kyle Evans <bsdports@kyle-evans.net>
2017-04-21 22:59:11 +00:00

22 lines
1 KiB
Text

--- tests/r_inline_xattr/script.orig 2017-04-09 19:31:41 UTC
+++ tests/r_inline_xattr/script
@@ -10,8 +10,8 @@ gunzip < $IMAGE > $TMPFILE
echo "resize2fs test" > $OUT
# Look at existing inline extended attribute
echo "debugfs -R ''stat file'' test.img 2>&1 | grep ''^Inode\|in inode body\|user.name (''" >> $OUT
-$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep "^Inode\|in inode body\|user.name (" >> $OUT
+$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep -E "^Inode|in inode body|user.name \(" >> $OUT
status=$?
echo Exit status is $status >> $OUT
@@ -23,8 +23,8 @@ echo Exit status is $status >> $OUT.new
sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
# Look at inline extended attribute in resized fs
echo "debugfs -R ''stat file'' test.img 2>&1 | grep ''^Inode\|in inode body\|user.name (''" >> $OUT
-$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep "^Inode\|in inode body\|user.name (" >> $OUT
+$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep -E "^Inode|in inode body|user.name \(" >> $OUT
status=$?
echo Exit status is $status >> $OUT