summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2016-06-06 16:49:37 -0400
committerTheodore Ts'o <tytso@mit.edu>2016-06-06 16:49:37 -0400
commitbe05f60ecfea19a257035765377dc662bcd67565 (patch)
tree3d451ec5ba255c3e254424576169f2d87b868c7f /tests
parent76188021233d1e22ba3ce0787a76096c82cdc0a5 (diff)
tests,debugfs: ea_set's "-f <value_file" needs to be before the other args
For systems that don't use GNU's getopt(3), options have to be before all non-option arguments. So change the usage message for debugfs's ea_set command, and then fix the d_xattr_sorting test. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/d_xattr_sorting/expect4
-rw-r--r--tests/d_xattr_sorting/script8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/d_xattr_sorting/expect b/tests/d_xattr_sorting/expect
index 17da663e..30a6eabc 100644
--- a/tests/d_xattr_sorting/expect
+++ b/tests/d_xattr_sorting/expect
@@ -1,9 +1,9 @@
debugfs sort extended attributes
mke2fs -Fq -b 1024 test.img 512
Exit status is 0
-ea_set / security.SMEG64 -f /tmp/b
+ea_set -f /tmp/b / security.SMEG64
Exit status is 0
-ea_set / security.imb -f /tmp/b
+ea_set -f /tmp/b / security.imb
Exit status is 0
ea_set / user.moo cow
Exit status is 0
diff --git a/tests/d_xattr_sorting/script b/tests/d_xattr_sorting/script
index 30187f17..8d5602e0 100644
--- a/tests/d_xattr_sorting/script
+++ b/tests/d_xattr_sorting/script
@@ -21,14 +21,14 @@ B=$(mktemp ${TMPDIR:-/tmp}/b.XXXXXX)
perl -e 'print "x" x 256;' > $B
-echo "ea_set / security.SMEG64 -f /tmp/b" > $OUT.new
-$DEBUGFS -w -R "ea_set / security.SMEG64 -f $B" $TMPFILE >> $OUT.new 2>&1
+echo "ea_set -f /tmp/b / security.SMEG64" > $OUT.new
+$DEBUGFS -w -R "ea_set -f $B / security.SMEG64" $TMPFILE >> $OUT.new 2>&1
status=$?
echo Exit status is $status >> $OUT.new
sed -f $cmd_dir/filter.sed $OUT.new >> $OUT
-echo "ea_set / security.imb -f /tmp/b" > $OUT.new
-$DEBUGFS -w -R "ea_set / security.imb -f $B" $TMPFILE >> $OUT.new 2>&1
+echo "ea_set -f /tmp/b / security.imb" > $OUT.new
+$DEBUGFS -w -R "ea_set -f $B / security.imb" $TMPFILE >> $OUT.new 2>&1
status=$?
echo Exit status is $status >> $OUT.new
sed -f $cmd_dir/filter.sed $OUT.new >> $OUT