diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-08-04 20:52:31 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-08-08 10:11:48 +0200 |
commit | 554caaf6ffc721fe83debe0eb5e555136b01f0bb (patch) | |
tree | 3434c8a4fca2cdac2ec5fca8bd808bd17a6f4d30 /tests/misc/xattr | |
parent | 8e2767a3f0c279d355f067e53be2c63173959eb1 (diff) | |
download | coreutils-554caaf6ffc721fe83debe0eb5e555136b01f0bb.tar.xz |
tests: complete the renaming framework_failure -> framework_failure_
These changes were mostly mechanical, made by running the
following command:
git grep -lw framework_failure | grep -v ChangeLog \
| xargs perl -pi -e 's/\b(framework_failure)\b/${1}_/'
and then editing init.cfg and `tests/cp/cp-a-selinux' by hand.
* tests/init.cfg (framework_failure): Remove, `framework_failure_'
from init.sh should be used instead in the tests.
Remove now-obsolete "FIXME" comment.
(is_local_dir_, require_strace_, require_membership_in_two_groups_,
require_sparse_support_, skip_if_mcstransd_is_running_,
mkfifo_or_skip_) Use `framework_failure_', not `framework_failure'.
* Many test scripts: Likewise.
Diffstat (limited to 'tests/misc/xattr')
-rwxr-xr-x | tests/misc/xattr | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/misc/xattr b/tests/misc/xattr index 05437d037..2529910dc 100755 --- a/tests/misc/xattr +++ b/tests/misc/xattr @@ -22,7 +22,7 @@ print_ver_ cp mv ginstall # Skip this test if cp was built without xattr support: -touch src dest || framework_failure +touch src dest || framework_failure_ cp --preserve=xattr -n src dest \ || skip_ "coreutils built without xattr support" @@ -30,7 +30,7 @@ cp --preserve=xattr -n src dest \ cleanup_() { rm -rf "$other_partition_tmpdir"; } . "$abs_srcdir/other-fs-tmpdir" b_other="$other_partition_tmpdir/b" -rm -f "$b_other" || framework_failure +rm -f "$b_other" || framework_failure_ # testing xattr name-value pair xattr_name="user.foo" @@ -38,9 +38,9 @@ xattr_value="bar" xattr_pair="$xattr_name=\"$xattr_value\"" # create new file and check its xattrs -touch a || framework_failure +touch a || framework_failure_ getfattr -d a >out_a || skip_ "failed to get xattr of file" -grep -F "$xattr_pair" out_a && framework_failure +grep -F "$xattr_pair" out_a && framework_failure_ # try to set user xattr on file setfattr -n "$xattr_name" -v "$xattr_value" a >out_a \ @@ -71,7 +71,7 @@ getfattr -d d >out_d || skip_ "failed to get xattr of file" grep -F "$xattr_pair" out_d || fail=1 # test if --preserve=xattr works even for files without write access -chmod a-w a || framework_failure +chmod a-w a || framework_failure_ rm -f e cp --preserve=xattr a e || fail=1 getfattr -d e >out_e || skip_ "failed to get xattr of file" @@ -82,9 +82,9 @@ src_perm=$(stat --format=%a a) dst_perm=$(stat --format=%a e) test "$dst_perm" = "$src_perm" || fail=1 -chmod u+w a || framework_failure +chmod u+w a || framework_failure_ -rm b || framework_failure +rm b || framework_failure_ # install should never preserve xattr ginstall a b || fail=1 @@ -105,12 +105,12 @@ EOF # try to set user xattr on file on other partition test_mv=1 -touch "$b_other" || framework_failure +touch "$b_other" || framework_failure_ setfattr -n "$xattr_name" -v "$xattr_value" "$b_other" >out_a \ || test_mv=0 getfattr -d "$b_other" >out_b || test_mv=0 grep -F "$xattr_pair" out_b || test_mv=0 -rm -f "$b_other" || framework_failure +rm -f "$b_other" || framework_failure_ if test $test_mv -eq 1; then # mv should preserve xattr when copying content from one partition to another |