From 56ff01f471c9b72de0a447b37cdb1051adcede6a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 19 Feb 2016 10:49:17 +1100 Subject: [PATCH] xfstests: remove _need_to_be_root The check script requires that it be run as root, so adding individualized checks for this in each teat is not needed. Signed-off-by: Theodore Ts'o Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- README | 4 ---- common/dump | 2 -- common/rc | 13 ------------- tests/btrfs/002 | 1 - tests/btrfs/003 | 1 - tests/btrfs/004 | 1 - tests/btrfs/007 | 1 - tests/btrfs/011 | 1 - tests/btrfs/017 | 1 - tests/btrfs/025 | 1 - tests/btrfs/026 | 1 - tests/btrfs/029 | 1 - tests/btrfs/030 | 1 - tests/btrfs/031 | 1 - tests/btrfs/034 | 1 - tests/btrfs/037 | 1 - tests/btrfs/038 | 1 - tests/btrfs/039 | 1 - tests/btrfs/040 | 1 - tests/btrfs/041 | 1 - tests/btrfs/043 | 1 - tests/btrfs/044 | 1 - tests/btrfs/045 | 1 - tests/btrfs/046 | 1 - tests/btrfs/047 | 1 - tests/btrfs/048 | 1 - tests/btrfs/049 | 1 - tests/btrfs/050 | 1 - tests/btrfs/051 | 1 - tests/btrfs/052 | 1 - tests/btrfs/053 | 1 - tests/btrfs/054 | 1 - tests/btrfs/055 | 1 - tests/btrfs/056 | 1 - tests/btrfs/057 | 1 - tests/btrfs/058 | 1 - tests/btrfs/059 | 1 - tests/btrfs/076 | 1 - tests/btrfs/077 | 1 - tests/btrfs/078 | 1 - tests/btrfs/079 | 1 - tests/btrfs/080 | 1 - tests/btrfs/081 | 1 - tests/btrfs/083 | 1 - tests/btrfs/084 | 1 - tests/btrfs/085 | 1 - tests/btrfs/086 | 1 - tests/btrfs/087 | 1 - tests/btrfs/088 | 1 - tests/btrfs/089 | 1 - tests/btrfs/091 | 1 - tests/btrfs/092 | 1 - tests/btrfs/093 | 1 - tests/btrfs/094 | 1 - tests/btrfs/095 | 1 - tests/btrfs/096 | 1 - tests/btrfs/097 | 1 - tests/btrfs/098 | 1 - tests/btrfs/099 | 1 - tests/btrfs/100 | 1 - tests/btrfs/101 | 1 - tests/btrfs/102 | 1 - tests/btrfs/103 | 1 - tests/btrfs/104 | 1 - tests/btrfs/105 | 3 +-- tests/btrfs/106 | 1 - tests/btrfs/107 | 1 - tests/btrfs/108 | 1 - tests/btrfs/109 | 1 - tests/btrfs/110 | 1 - tests/btrfs/111 | 1 - tests/btrfs/112 | 1 - tests/btrfs/113 | 1 - tests/btrfs/116 | 1 - tests/btrfs/117 | 1 - tests/ext4/271 | 1 - tests/ext4/301 | 1 - tests/ext4/302 | 1 - tests/ext4/303 | 1 - tests/ext4/304 | 1 - tests/ext4/307 | 1 - tests/ext4/308 | 1 - tests/generic/019 | 1 - tests/generic/026 | 1 - tests/generic/034 | 1 - tests/generic/037 | 1 - tests/generic/038 | 1 - tests/generic/039 | 1 - tests/generic/040 | 1 - tests/generic/041 | 1 - tests/generic/056 | 1 - tests/generic/057 | 1 - tests/generic/059 | 1 - tests/generic/065 | 1 - tests/generic/066 | 1 - tests/generic/071 | 1 - tests/generic/073 | 1 - tests/generic/090 | 1 - tests/generic/093 | 2 -- tests/generic/098 | 1 - tests/generic/101 | 1 - tests/generic/102 | 1 - tests/generic/104 | 1 - tests/generic/106 | 1 - tests/generic/107 | 1 - tests/generic/177 | 1 - tests/generic/193 | 1 - tests/generic/230 | 1 - tests/generic/231 | 1 - tests/generic/232 | 1 - tests/generic/233 | 1 - tests/generic/234 | 1 - tests/generic/235 | 1 - tests/generic/237 | 1 - tests/generic/265 | 1 - tests/generic/266 | 1 - tests/generic/267 | 1 - tests/generic/268 | 1 - tests/generic/269 | 1 - tests/generic/270 | 1 - tests/generic/271 | 1 - tests/generic/272 | 1 - tests/generic/276 | 1 - tests/generic/278 | 1 - tests/generic/279 | 1 - tests/generic/281 | 1 - tests/generic/282 | 1 - tests/generic/283 | 1 - tests/generic/299 | 1 - tests/generic/300 | 1 - tests/generic/311 | 1 - tests/generic/314 | 1 - tests/generic/317 | 1 - tests/generic/318 | 1 - tests/generic/319 | 1 - tests/generic/321 | 1 - tests/generic/322 | 1 - tests/generic/324 | 1 - tests/generic/325 | 1 - tests/shared/002 | 1 - tests/shared/051 | 1 - tests/shared/272 | 1 - tests/xfs/003 | 2 -- tests/xfs/004 | 1 - tests/xfs/067 | 1 - tests/xfs/114 | 1 - tests/xfs/189 | 1 - 147 files changed, 1 insertion(+), 166 deletions(-) diff --git a/README b/README index e44ce5132..3800df767 100644 --- a/README +++ b/README @@ -168,10 +168,6 @@ Test script environment: 3. By default, tests are run as the same uid as the person executing the control script "check" that runs the test scripts. - If you need to be root, add a call to the shell procedure - _need_to_be_root ... this will do nothing or exit with an - error message depending on your current uid. - 4. Some other useful shell procedures: _get_fqdn - echo the host's fully qualified diff --git a/common/dump b/common/dump index 2db73789e..d6663e0c1 100644 --- a/common/dump +++ b/common/dump @@ -60,8 +60,6 @@ session_label="stress_$seq" nobody=4 # define this uid/gid as a number do_quota_check=true # do quota check if quotas enabled -_need_to_be_root - # install our cleaner trap "_cleanup; exit \$status" 0 1 2 3 15 diff --git a/common/rc b/common/rc index 7a51f4f34..0dc3f0fa6 100644 --- a/common/rc +++ b/common/rc @@ -1076,19 +1076,6 @@ _fix_malloc() ' } -# check if run as root -# -_need_to_be_root() -{ - id=`id | $SED_PROG -e 's/(.*//' -e 's/.*=//'` - if [ "$id" -ne 0 ] - then - echo "Arrgh ... you need to be root (not uid=$id) to run this test" - exit 1 - fi -} - - # # _df_device : get an IRIX style df line for a given device # diff --git a/tests/btrfs/002 b/tests/btrfs/002 index 35e857b0e..fce5d955d 100755 --- a/tests/btrfs/002 +++ b/tests/btrfs/002 @@ -41,7 +41,6 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 . ./common/rc . ./common/filter -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/003 b/tests/btrfs/003 index ae7e37759..51cff4644 100755 --- a/tests/btrfs/003 +++ b/tests/btrfs/003 @@ -46,7 +46,6 @@ _cleanup() . ./common/rc . ./common/filter -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/004 b/tests/btrfs/004 index d588c5ba4..905770a50 100755 --- a/tests/btrfs/004 +++ b/tests/btrfs/004 @@ -47,7 +47,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/007 b/tests/btrfs/007 index 82d093aac..57f9a79f5 100755 --- a/tests/btrfs/007 +++ b/tests/btrfs/007 @@ -47,7 +47,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/011 b/tests/btrfs/011 index 72c53abfb..91ddebb20 100755 --- a/tests/btrfs/011 +++ b/tests/btrfs/011 @@ -59,7 +59,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _require_scratch_nocheck _require_scratch_dev_pool 4 diff --git a/tests/btrfs/017 b/tests/btrfs/017 index 34c5f0ac1..3f409d31e 100755 --- a/tests/btrfs/017 +++ b/tests/btrfs/017 @@ -48,7 +48,6 @@ _cleanup() # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/025 b/tests/btrfs/025 index 76ec2dd49..81ae94371 100755 --- a/tests/btrfs/025 +++ b/tests/btrfs/025 @@ -47,7 +47,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/026 b/tests/btrfs/026 index 60908cc48..876651d9a 100755 --- a/tests/btrfs/026 +++ b/tests/btrfs/026 @@ -42,7 +42,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/029 b/tests/btrfs/029 index 87c289bd1..c390c95f5 100755 --- a/tests/btrfs/029 +++ b/tests/btrfs/029 @@ -55,7 +55,6 @@ _supported_os Linux _require_test _require_scratch _require_cp_reflink -_need_to_be_root reflink_test_dir=$TEST_DIR/test-$seq rm -rf $reflink_test_dir diff --git a/tests/btrfs/030 b/tests/btrfs/030 index a76a410c7..a8e08f6ed 100755 --- a/tests/btrfs/030 +++ b/tests/btrfs/030 @@ -54,7 +54,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/031 b/tests/btrfs/031 index fe8cd4ecf..c2b11dd18 100755 --- a/tests/btrfs/031 +++ b/tests/btrfs/031 @@ -52,7 +52,6 @@ _supported_os Linux _require_test _require_scratch _require_cp_reflink -_need_to_be_root _checksum_files() { diff --git a/tests/btrfs/034 b/tests/btrfs/034 index 38952a3ef..179c827c1 100755 --- a/tests/btrfs/034 +++ b/tests/btrfs/034 @@ -44,7 +44,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/037 b/tests/btrfs/037 index 2591a336f..5c0ea6687 100755 --- a/tests/btrfs/037 +++ b/tests/btrfs/037 @@ -51,7 +51,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/038 b/tests/btrfs/038 index 4941d3e74..d75ed4819 100755 --- a/tests/btrfs/038 +++ b/tests/btrfs/038 @@ -50,7 +50,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/039 b/tests/btrfs/039 index 758b23c70..ac7144ff8 100755 --- a/tests/btrfs/039 +++ b/tests/btrfs/039 @@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/040 b/tests/btrfs/040 index dfd495caf..c97ed508e 100755 --- a/tests/btrfs/040 +++ b/tests/btrfs/040 @@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/041 b/tests/btrfs/041 index 963978747..8bb74cd2a 100755 --- a/tests/btrfs/041 +++ b/tests/btrfs/041 @@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_test _require_scratch -_need_to_be_root rm -f $seqres.full mkdir $restore_dir diff --git a/tests/btrfs/043 b/tests/btrfs/043 index 4993349c1..1ba5acd10 100755 --- a/tests/btrfs/043 +++ b/tests/btrfs/043 @@ -49,7 +49,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/044 b/tests/btrfs/044 index 5565b869c..9d6d212db 100755 --- a/tests/btrfs/044 +++ b/tests/btrfs/044 @@ -54,7 +54,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/045 b/tests/btrfs/045 index 8570fa647..bdafbab57 100755 --- a/tests/btrfs/045 +++ b/tests/btrfs/045 @@ -70,7 +70,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/046 b/tests/btrfs/046 index 288fb7f61..6bf50005b 100755 --- a/tests/btrfs/046 +++ b/tests/btrfs/046 @@ -54,7 +54,6 @@ _supported_os Linux _require_test _require_scratch _require_fssum -_need_to_be_root rm -f $seqres.full rm -fr $send_files_dir diff --git a/tests/btrfs/047 b/tests/btrfs/047 index 2c50bf697..6d7d351d0 100755 --- a/tests/btrfs/047 +++ b/tests/btrfs/047 @@ -62,7 +62,6 @@ _require_scratch _require_fssum _require_xfs_io_command "fiemap" _require_btrfs_send_stream_version -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/048 b/tests/btrfs/048 index dc7386d79..c2cb4a63b 100755 --- a/tests/btrfs/048 +++ b/tests/btrfs/048 @@ -48,7 +48,6 @@ _supported_os Linux _require_test _require_scratch _require_btrfs "property" -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/049 b/tests/btrfs/049 index 38ed7ad51..4ec5dd8fe 100755 --- a/tests/btrfs/049 +++ b/tests/btrfs/049 @@ -48,7 +48,6 @@ _cleanup() # real QA test starts here _supported_fs btrfs _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey diff --git a/tests/btrfs/050 b/tests/btrfs/050 index b72408aa6..9a1f5e486 100755 --- a/tests/btrfs/050 +++ b/tests/btrfs/050 @@ -54,7 +54,6 @@ _supported_os Linux _require_test _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/051 b/tests/btrfs/051 index 1ddfb7449..9ffbde371 100755 --- a/tests/btrfs/051 +++ b/tests/btrfs/051 @@ -51,7 +51,6 @@ _supported_os Linux _require_test _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/052 b/tests/btrfs/052 index babc12762..599d2616f 100755 --- a/tests/btrfs/052 +++ b/tests/btrfs/052 @@ -45,7 +45,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/053 b/tests/btrfs/053 index 43a831cdd..06dcaff0c 100755 --- a/tests/btrfs/053 +++ b/tests/btrfs/053 @@ -54,7 +54,6 @@ _require_test _require_scratch _require_fssum _require_attrs -_need_to_be_root # max(16384, PAGE_SIZE) is the default leaf/node size on btrfs-progs v3.12+. # Older versions just use max(4096, PAGE_SIZE). diff --git a/tests/btrfs/054 b/tests/btrfs/054 index 33241b0f9..606fb40e1 100755 --- a/tests/btrfs/054 +++ b/tests/btrfs/054 @@ -60,7 +60,6 @@ _supported_fs btrfs _supported_os Linux _require_test _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/055 b/tests/btrfs/055 index 1f50850e1..29afdbaaf 100755 --- a/tests/btrfs/055 +++ b/tests/btrfs/055 @@ -51,7 +51,6 @@ _require_scratch _require_cloner _require_btrfs_fs_feature "no_holes" _require_btrfs_mkfs_feature "no-holes" -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/056 b/tests/btrfs/056 index 6dc3bfd66..ef515a1e0 100755 --- a/tests/btrfs/056 +++ b/tests/btrfs/056 @@ -56,7 +56,6 @@ _require_cloner _require_btrfs_fs_feature "no_holes" _require_btrfs_mkfs_feature "no-holes" _require_dm_target flakey -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/057 b/tests/btrfs/057 index 605bd020b..8d3557953 100755 --- a/tests/btrfs/057 +++ b/tests/btrfs/057 @@ -42,7 +42,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/058 b/tests/btrfs/058 index 4d45686b0..ecfe85719 100755 --- a/tests/btrfs/058 +++ b/tests/btrfs/058 @@ -56,7 +56,6 @@ _require_scratch # Requiring flink command tests for the presence of the -T option used # to pass O_TMPFILE to open(2). _require_xfs_io_command "flink" -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/059 b/tests/btrfs/059 index 3379eada9..b9a6ef4bf 100755 --- a/tests/btrfs/059 +++ b/tests/btrfs/059 @@ -51,7 +51,6 @@ _supported_os Linux _require_test _require_scratch _require_btrfs "property" -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/076 b/tests/btrfs/076 index 16d674d1e..1c86d8153 100755 --- a/tests/btrfs/076 +++ b/tests/btrfs/076 @@ -50,7 +50,6 @@ _supported_fs btrfs _supported_os Linux _require_test _require_scratch -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/077 b/tests/btrfs/077 index fdaaf9e77..e56fe5bc3 100755 --- a/tests/btrfs/077 +++ b/tests/btrfs/077 @@ -58,7 +58,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/078 b/tests/btrfs/078 index 48de357ce..2c1dfa3bf 100755 --- a/tests/btrfs/078 +++ b/tests/btrfs/078 @@ -48,7 +48,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/079 b/tests/btrfs/079 index 4f59ff96a..6aee3a373 100755 --- a/tests/btrfs/079 +++ b/tests/btrfs/079 @@ -58,7 +58,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root # Since xfs_io's fiemap always use SYNC flag and can't be unset, # we must use filefrag to call fiemap without SYNC flag. _require_command "/usr/sbin/filefrag" filefrag diff --git a/tests/btrfs/080 b/tests/btrfs/080 index a5d3b3870..b1474d100 100755 --- a/tests/btrfs/080 +++ b/tests/btrfs/080 @@ -53,7 +53,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch_nocheck diff --git a/tests/btrfs/081 b/tests/btrfs/081 index 40fa426fb..c367a0128 100755 --- a/tests/btrfs/081 +++ b/tests/btrfs/081 @@ -50,7 +50,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/083 b/tests/btrfs/083 index e4b676779..47fc3e723 100755 --- a/tests/btrfs/083 +++ b/tests/btrfs/083 @@ -52,7 +52,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/084 b/tests/btrfs/084 index a9e26becf..55e989ac8 100755 --- a/tests/btrfs/084 +++ b/tests/btrfs/084 @@ -51,7 +51,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/085 b/tests/btrfs/085 index d82f79ac3..3dbc67f5d 100755 --- a/tests/btrfs/085 +++ b/tests/btrfs/085 @@ -55,7 +55,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_dm_target flakey -_need_to_be_root BTRFS_DEBUG_TREE_PROG="`set_prog_path btrfs-debug-tree`" _require_command "$BTRFS_DEBUG_TREE_PROG" btrfs-debug-tree diff --git a/tests/btrfs/086 b/tests/btrfs/086 index 77c8da685..ea5489b15 100755 --- a/tests/btrfs/086 +++ b/tests/btrfs/086 @@ -53,7 +53,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/087 b/tests/btrfs/087 index b8ee3e160..b4a62e578 100755 --- a/tests/btrfs/087 +++ b/tests/btrfs/087 @@ -57,7 +57,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/088 b/tests/btrfs/088 index 79268ecf7..7b8e12805 100755 --- a/tests/btrfs/088 +++ b/tests/btrfs/088 @@ -51,7 +51,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fail_make_request -_need_to_be_root SYSFS_BDEV=`_sysfs_dev $SCRATCH_DEV` diff --git a/tests/btrfs/089 b/tests/btrfs/089 index 537269824..db7d511ad 100755 --- a/tests/btrfs/089 +++ b/tests/btrfs/089 @@ -46,7 +46,6 @@ _cleanup() # real QA test starts here # Modify as appropriate. -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/091 b/tests/btrfs/091 index feac551ec..16b5c16ce 100755 --- a/tests/btrfs/091 +++ b/tests/btrfs/091 @@ -43,7 +43,6 @@ _cleanup() # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/092 b/tests/btrfs/092 index d72749396..71fceec50 100755 --- a/tests/btrfs/092 +++ b/tests/btrfs/092 @@ -56,7 +56,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_fssum -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/093 b/tests/btrfs/093 index 643c6be1e..64b7aa243 100755 --- a/tests/btrfs/093 +++ b/tests/btrfs/093 @@ -50,7 +50,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/094 b/tests/btrfs/094 index 45f108d17..52b7ed2c5 100755 --- a/tests/btrfs/094 +++ b/tests/btrfs/094 @@ -56,7 +56,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/095 b/tests/btrfs/095 index dec530c91..b477b5714 100755 --- a/tests/btrfs/095 +++ b/tests/btrfs/095 @@ -48,7 +48,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/096 b/tests/btrfs/096 index 896a209b3..039e09db0 100755 --- a/tests/btrfs/096 +++ b/tests/btrfs/096 @@ -40,7 +40,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/097 b/tests/btrfs/097 index d1cfff157..4b4dd18c4 100755 --- a/tests/btrfs/097 +++ b/tests/btrfs/097 @@ -46,7 +46,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cloner -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/098 b/tests/btrfs/098 index 49f6d16bc..f916c37ae 100755 --- a/tests/btrfs/098 +++ b/tests/btrfs/098 @@ -44,7 +44,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/099 b/tests/btrfs/099 index 05e1ad2fe..70f07b5a1 100755 --- a/tests/btrfs/099 +++ b/tests/btrfs/099 @@ -46,7 +46,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root # Use big blocksize to ensure there is still enough space left for metadata # space reserve. diff --git a/tests/btrfs/100 b/tests/btrfs/100 index cd385e1e0..38f53f8bc 100755 --- a/tests/btrfs/100 +++ b/tests/btrfs/100 @@ -44,7 +44,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux -_need_to_be_root _require_scratch_dev_pool 3 _require_dm_target error diff --git a/tests/btrfs/101 b/tests/btrfs/101 index 8d7af85b3..ed91457bf 100755 --- a/tests/btrfs/101 +++ b/tests/btrfs/101 @@ -44,7 +44,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux -_need_to_be_root _require_scratch_dev_pool 3 _require_btrfs_dev_del_by_devid _require_dm_target error diff --git a/tests/btrfs/102 b/tests/btrfs/102 index 9f0bea095..7a33c6b7b 100755 --- a/tests/btrfs/102 +++ b/tests/btrfs/102 @@ -41,7 +41,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/103 b/tests/btrfs/103 index a5a252a07..caa979a49 100755 --- a/tests/btrfs/103 +++ b/tests/btrfs/103 @@ -41,7 +41,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/104 b/tests/btrfs/104 index efc0d7434..6afaa0222 100755 --- a/tests/btrfs/104 +++ b/tests/btrfs/104 @@ -58,7 +58,6 @@ rm -f $seqres.full _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root rm -f $seqres.full diff --git a/tests/btrfs/105 b/tests/btrfs/105 index be051fe5f..cdbdb8ffa 100755 --- a/tests/btrfs/105 +++ b/tests/btrfs/105 @@ -48,7 +48,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq @@ -109,4 +108,4 @@ echo "File digest in the new filesystem:" md5sum $SCRATCH_MNT/mysnap2_ro/foo/bar | _filter_scratch status=0 -exit \ No newline at end of file +exit diff --git a/tests/btrfs/106 b/tests/btrfs/106 index c7e61f72b..98f0d0868 100755 --- a/tests/btrfs/106 +++ b/tests/btrfs/106 @@ -43,7 +43,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/107 b/tests/btrfs/107 index a5ad71a0b..e5516e647 100755 --- a/tests/btrfs/107 +++ b/tests/btrfs/107 @@ -50,7 +50,6 @@ rm -f $seqres.full _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root # Use 64K file size to match any sectorsize # And with a unaligned tailing range to ensure it will be at least 2 pages diff --git a/tests/btrfs/108 b/tests/btrfs/108 index 18e5b99d8..9c6d35db1 100755 --- a/tests/btrfs/108 +++ b/tests/btrfs/108 @@ -47,7 +47,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root _require_cp_reflink _require_xfs_io_command "fpunch" diff --git a/tests/btrfs/109 b/tests/btrfs/109 index b86336c9a..8ee1aa190 100755 --- a/tests/btrfs/109 +++ b/tests/btrfs/109 @@ -47,7 +47,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root _require_cp_reflink send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/110 b/tests/btrfs/110 index 45c0ce31d..7548af4c4 100755 --- a/tests/btrfs/110 +++ b/tests/btrfs/110 @@ -46,7 +46,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/111 b/tests/btrfs/111 index e597db714..56085dc1b 100755 --- a/tests/btrfs/111 +++ b/tests/btrfs/111 @@ -46,7 +46,6 @@ _cleanup() _supported_fs btrfs _supported_os Linux _require_scratch -_need_to_be_root send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/112 b/tests/btrfs/112 index 45f68fc0b..a0177f671 100755 --- a/tests/btrfs/112 +++ b/tests/btrfs/112 @@ -42,7 +42,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/113 b/tests/btrfs/113 index 72866aae4..93ab47d3b 100755 --- a/tests/btrfs/113 +++ b/tests/btrfs/113 @@ -44,7 +44,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/116 b/tests/btrfs/116 index c51e135ab..1ea88c139 100755 --- a/tests/btrfs/116 +++ b/tests/btrfs/116 @@ -44,7 +44,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs btrfs _supported_os Linux _require_scratch diff --git a/tests/btrfs/117 b/tests/btrfs/117 index f2e58def7..a028da56a 100755 --- a/tests/btrfs/117 +++ b/tests/btrfs/117 @@ -49,7 +49,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch _require_cp_reflink -_need_to_be_root rm -f $seqres.full diff --git a/tests/ext4/271 b/tests/ext4/271 index 217d0d89f..844364fff 100755 --- a/tests/ext4/271 +++ b/tests/ext4/271 @@ -38,7 +38,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs ext4 _supported_os Linux -_need_to_be_root _require_scratch rm -f $seqres.full diff --git a/tests/ext4/301 b/tests/ext4/301 index d6547c579..4e21acd85 100755 --- a/tests/ext4/301 +++ b/tests/ext4/301 @@ -40,7 +40,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag diff --git a/tests/ext4/302 b/tests/ext4/302 index 45cd28c6e..6ed8ce034 100755 --- a/tests/ext4/302 +++ b/tests/ext4/302 @@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag diff --git a/tests/ext4/303 b/tests/ext4/303 index 64a64055a..b925aa364 100755 --- a/tests/ext4/303 +++ b/tests/ext4/303 @@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag diff --git a/tests/ext4/304 b/tests/ext4/304 index cc03190a7..ceb82d6ae 100755 --- a/tests/ext4/304 +++ b/tests/ext4/304 @@ -42,7 +42,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_os Linux _supported_fs ext4 -_need_to_be_root _require_scratch _require_defrag diff --git a/tests/ext4/307 b/tests/ext4/307 index 673b9ce21..505737d96 100755 --- a/tests/ext4/307 +++ b/tests/ext4/307 @@ -61,7 +61,6 @@ _workout() _supported_fs generic _supported_fs ext4 _supported_os Linux -_need_to_be_root _require_scratch _require_defrag _require_xfs_io_command "falloc" diff --git a/tests/ext4/308 b/tests/ext4/308 index 948ff3fb4..74bfc1ba7 100755 --- a/tests/ext4/308 +++ b/tests/ext4/308 @@ -43,7 +43,6 @@ _cleanup() # real QA test starts here _supported_os Linux -_need_to_be_root _require_scratch _require_defrag _require_xfs_io_command "falloc" diff --git a/tests/generic/019 b/tests/generic/019 index 1137ffe95..84e62f5c6 100755 --- a/tests/generic/019 +++ b/tests/generic/019 @@ -37,7 +37,6 @@ status=1 # failure is the default! . ./common/filter _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_fail_make_request diff --git a/tests/generic/026 b/tests/generic/026 index ab75839cf..4d3fac683 100755 --- a/tests/generic/026 +++ b/tests/generic/026 @@ -50,7 +50,6 @@ _supported_fs generic _supported_os Linux _require_test _require_scratch -_need_to_be_root _acl_setup_ids _require_acls _require_acl_get_max diff --git a/tests/generic/034 b/tests/generic/034 index 1065c702a..6727b98bd 100755 --- a/tests/generic/034 +++ b/tests/generic/034 @@ -50,7 +50,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/037 b/tests/generic/037 index 76e3bf40b..d7dcfe2b4 100755 --- a/tests/generic/037 +++ b/tests/generic/037 @@ -51,7 +51,6 @@ _cleanup() . ./common/attr # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/038 b/tests/generic/038 index 4d3977a08..59aed67ab 100755 --- a/tests/generic/038 +++ b/tests/generic/038 @@ -65,7 +65,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/039 b/tests/generic/039 index 21c04d25f..7d62393ed 100755 --- a/tests/generic/039 +++ b/tests/generic/039 @@ -54,7 +54,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/040 b/tests/generic/040 index 7e90e0041..2aeccdd37 100755 --- a/tests/generic/040 +++ b/tests/generic/040 @@ -59,7 +59,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/041 b/tests/generic/041 index 781638910..283c305e4 100755 --- a/tests/generic/041 +++ b/tests/generic/041 @@ -63,7 +63,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/056 b/tests/generic/056 index b72069099..6ca3b1ace 100755 --- a/tests/generic/056 +++ b/tests/generic/056 @@ -52,7 +52,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/057 b/tests/generic/057 index fa4d17a6b..76f438edf 100755 --- a/tests/generic/057 +++ b/tests/generic/057 @@ -52,7 +52,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/059 b/tests/generic/059 index de4e7ce07..c3a60448e 100755 --- a/tests/generic/059 +++ b/tests/generic/059 @@ -57,7 +57,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/065 b/tests/generic/065 index 37077d538..935f414ba 100755 --- a/tests/generic/065 +++ b/tests/generic/065 @@ -53,7 +53,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/066 b/tests/generic/066 index 3c215bd86..c42b11bb2 100755 --- a/tests/generic/066 +++ b/tests/generic/066 @@ -57,7 +57,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_attrs diff --git a/tests/generic/071 b/tests/generic/071 index 1b0f558db..65ed0c732 100755 --- a/tests/generic/071 +++ b/tests/generic/071 @@ -45,7 +45,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_xfs_io_command "falloc" diff --git a/tests/generic/073 b/tests/generic/073 index 1c92c66fc..9e3794fd2 100755 --- a/tests/generic/073 +++ b/tests/generic/073 @@ -53,7 +53,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/090 b/tests/generic/090 index 1bc9b1614..eeb1831ee 100755 --- a/tests/generic/090 +++ b/tests/generic/090 @@ -51,7 +51,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/093 b/tests/generic/093 index 8f810a663..af5888853 100755 --- a/tests/generic/093 +++ b/tests/generic/093 @@ -65,8 +65,6 @@ _require_attrs rm -f $seqres.full -_need_to_be_root - echo "QA output created by $seq" echo "" file=$TEST_DIR/$seq.file diff --git a/tests/generic/098 b/tests/generic/098 index 494563007..838bb5de6 100755 --- a/tests/generic/098 +++ b/tests/generic/098 @@ -46,7 +46,6 @@ _cleanup() . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/101 b/tests/generic/101 index 8771a1737..f4f6c3620 100755 --- a/tests/generic/101 +++ b/tests/generic/101 @@ -47,7 +47,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/102 b/tests/generic/102 index abc399481..3cdc2ba63 100755 --- a/tests/generic/102 +++ b/tests/generic/102 @@ -41,7 +41,6 @@ trap "exit \$status" 0 1 2 3 15 . ./common/filter # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/104 b/tests/generic/104 index ceab94b35..79171994e 100755 --- a/tests/generic/104 +++ b/tests/generic/104 @@ -45,7 +45,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/106 b/tests/generic/106 index 9dd2e6b27..efad8c830 100755 --- a/tests/generic/106 +++ b/tests/generic/106 @@ -44,7 +44,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/107 b/tests/generic/107 index 6b5f2bbe5..e0a92457f 100755 --- a/tests/generic/107 +++ b/tests/generic/107 @@ -47,7 +47,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/177 b/tests/generic/177 index c11d1c6ff..0aeb8e4eb 100755 --- a/tests/generic/177 +++ b/tests/generic/177 @@ -48,7 +48,6 @@ _cleanup() . ./common/dmflakey # real QA test starts here -_need_to_be_root _supported_fs generic _supported_os Linux _require_scratch diff --git a/tests/generic/193 b/tests/generic/193 index cd3c0b0e6..6d0754f4f 100755 --- a/tests/generic/193 +++ b/tests/generic/193 @@ -72,7 +72,6 @@ _supported_os Linux _require_test _require_user -_need_to_be_root test_root=$TEST_DIR/$seq.$$.root test_user=$TEST_DIR/$seq.$$.user diff --git a/tests/generic/230 b/tests/generic/230 index 0b1b3bfbd..8efa65d83 100755 --- a/tests/generic/230 +++ b/tests/generic/230 @@ -45,7 +45,6 @@ _supported_os Linux #IRIX _require_scratch _require_quota _require_user -_need_to_be_root test_files() { diff --git a/tests/generic/231 b/tests/generic/231 index feda0c168..3133cfe9a 100755 --- a/tests/generic/231 +++ b/tests/generic/231 @@ -69,7 +69,6 @@ _supported_os Linux _require_scratch _require_quota _require_user -_need_to_be_root _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" diff --git a/tests/generic/232 b/tests/generic/232 index 132380950..6b1977918 100755 --- a/tests/generic/232 +++ b/tests/generic/232 @@ -69,7 +69,6 @@ _supported_fs generic _supported_os Linux _require_scratch _require_quota -_need_to_be_root _scratch_mkfs > $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" diff --git a/tests/generic/233 b/tests/generic/233 index d50d280d6..1405d0e8f 100755 --- a/tests/generic/233 +++ b/tests/generic/233 @@ -74,7 +74,6 @@ _supported_os Linux _require_scratch _require_quota _require_user -_need_to_be_root _scratch_mkfs > $seqres.full 2>&1 _scratch_mount "-o usrquota,grpquota" diff --git a/tests/generic/234 b/tests/generic/234 index 30be0e91e..75a2c23cc 100755 --- a/tests/generic/234 +++ b/tests/generic/234 @@ -91,7 +91,6 @@ _supported_fs generic _supported_os Linux #IRIX _require_scratch _require_quota -_need_to_be_root # real QA test starts here rm -f $seqres.full diff --git a/tests/generic/235 b/tests/generic/235 index e27fd3dfd..59456b67c 100755 --- a/tests/generic/235 +++ b/tests/generic/235 @@ -45,7 +45,6 @@ _supported_os Linux #IRIX _require_scratch _require_quota _require_user -_need_to_be_root # real QA test starts here rm -f $seqres.full diff --git a/tests/generic/237 b/tests/generic/237 index f2669cd24..75b1b55f8 100755 --- a/tests/generic/237 +++ b/tests/generic/237 @@ -55,7 +55,6 @@ _require_test rm -f $seqres.full -_need_to_be_root _acl_setup_ids _require_acls diff --git a/tests/generic/265 b/tests/generic/265 index 607867d90..8e9d5bcb0 100755 --- a/tests/generic/265 +++ b/tests/generic/265 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/266 b/tests/generic/266 index 102df766e..4f9816af6 100755 --- a/tests/generic/266 +++ b/tests/generic/266 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/267 b/tests/generic/267 index 24b7b7c9c..e3a6b0c1c 100755 --- a/tests/generic/267 +++ b/tests/generic/267 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/268 b/tests/generic/268 index c17ea57e6..c7dcd5754 100755 --- a/tests/generic/268 +++ b/tests/generic/268 @@ -47,7 +47,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/269 b/tests/generic/269 index d2043d4e9..ee353a5e2 100755 --- a/tests/generic/269 +++ b/tests/generic/269 @@ -64,7 +64,6 @@ _workout() # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch rm -f $seqres.full diff --git a/tests/generic/270 b/tests/generic/270 index 255ebf235..e6874c98c 100755 --- a/tests/generic/270 +++ b/tests/generic/270 @@ -78,7 +78,6 @@ _supported_fs generic _supported_os Linux _require_quota _require_user -_need_to_be_root _require_scratch rm -f $seqres.full diff --git a/tests/generic/271 b/tests/generic/271 index 955478e9e..fc3c3c65c 100755 --- a/tests/generic/271 +++ b/tests/generic/271 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect diff --git a/tests/generic/272 b/tests/generic/272 index 75602147d..feaadae62 100755 --- a/tests/generic/272 +++ b/tests/generic/272 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect diff --git a/tests/generic/276 b/tests/generic/276 index 560daba2e..c6d7a6399 100755 --- a/tests/generic/276 +++ b/tests/generic/276 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect diff --git a/tests/generic/278 b/tests/generic/278 index 6d0c82881..527356deb 100755 --- a/tests/generic/278 +++ b/tests/generic/278 @@ -47,7 +47,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error _require_odirect diff --git a/tests/generic/279 b/tests/generic/279 index 67da34b0d..2f1ec4f61 100755 --- a/tests/generic/279 +++ b/tests/generic/279 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/281 b/tests/generic/281 index 71e3dd71b..c95acf299 100755 --- a/tests/generic/281 +++ b/tests/generic/281 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/282 b/tests/generic/282 index 38714e0df..645202543 100755 --- a/tests/generic/282 +++ b/tests/generic/282 @@ -46,7 +46,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/283 b/tests/generic/283 index 6d8701f35..8d56ac34b 100755 --- a/tests/generic/283 +++ b/tests/generic/283 @@ -47,7 +47,6 @@ _cleanup() _supported_os Linux _require_scratch_reflink _require_cp_reflink -_need_to_be_root _require_dm_target error rm -f $seqres.full diff --git a/tests/generic/299 b/tests/generic/299 index 4174de0d6..40265c8ce 100755 --- a/tests/generic/299 +++ b/tests/generic/299 @@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_odirect diff --git a/tests/generic/300 b/tests/generic/300 index a12aba613..c187f43d2 100755 --- a/tests/generic/300 +++ b/tests/generic/300 @@ -41,7 +41,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_odirect diff --git a/tests/generic/311 b/tests/generic/311 index 69bc1bfbf..2d4413b92 100755 --- a/tests/generic/311 +++ b/tests/generic/311 @@ -53,7 +53,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch_nocheck _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/314 b/tests/generic/314 index 294fb234a..65d35136b 100755 --- a/tests/generic/314 +++ b/tests/generic/314 @@ -46,7 +46,6 @@ _supported_fs generic _require_test _require_acls _require_user -_need_to_be_root rm -rf $TEST_DIR/$seq-dir diff --git a/tests/generic/317 b/tests/generic/317 index a5d880441..9d9499ba0 100755 --- a/tests/generic/317 +++ b/tests/generic/317 @@ -58,7 +58,6 @@ _supported_os Linux rm -f $seqres.full _require_scratch -_need_to_be_root _require_user _require_ugid_map _require_userns diff --git a/tests/generic/318 b/tests/generic/318 index f850a9b3e..e284317bd 100755 --- a/tests/generic/318 +++ b/tests/generic/318 @@ -58,7 +58,6 @@ _supported_os Linux rm -f $seqres.full _require_scratch -_need_to_be_root _acl_setup_ids _require_acls _require_ugid_map diff --git a/tests/generic/319 b/tests/generic/319 index 046969f06..d1eea4a1e 100755 --- a/tests/generic/319 +++ b/tests/generic/319 @@ -52,7 +52,6 @@ _supported_os Linux _supported_fs generic _require_acls _require_scratch -_need_to_be_root rm -f $seqres.full diff --git a/tests/generic/321 b/tests/generic/321 index 7c6c8234b..879850318 100755 --- a/tests/generic/321 +++ b/tests/generic/321 @@ -42,7 +42,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch_nocheck _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/322 b/tests/generic/322 index 9c925a44a..475a31ceb 100755 --- a/tests/generic/322 +++ b/tests/generic/322 @@ -42,7 +42,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch_nocheck _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/generic/324 b/tests/generic/324 index 5e642dcbd..47cb3dbc0 100755 --- a/tests/generic/324 +++ b/tests/generic/324 @@ -41,7 +41,6 @@ _cleanup() # real QA test starts here _supported_os Linux -_need_to_be_root _require_scratch _require_defrag _require_xfs_io_command "falloc" diff --git a/tests/generic/325 b/tests/generic/325 index 0994ff652..a0b641a20 100755 --- a/tests/generic/325 +++ b/tests/generic/325 @@ -52,7 +52,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_metadata_journaling $SCRATCH_DEV diff --git a/tests/shared/002 b/tests/shared/002 index eb8713bfc..88b28260b 100755 --- a/tests/shared/002 +++ b/tests/shared/002 @@ -57,7 +57,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # less than 1000 xattrs with very small values. _supported_fs btrfs xfs _supported_os Linux -_need_to_be_root _require_scratch _require_dm_target flakey _require_attrs diff --git a/tests/shared/051 b/tests/shared/051 index 262cef13e..1b2d2cf33 100755 --- a/tests/shared/051 +++ b/tests/shared/051 @@ -76,7 +76,6 @@ _require_test rm -f $seqres.full -_need_to_be_root _acl_setup_ids _require_acls diff --git a/tests/shared/272 b/tests/shared/272 index 11b2a00a4..8ec2c36c1 100755 --- a/tests/shared/272 +++ b/tests/shared/272 @@ -84,7 +84,6 @@ chattr_opt: $chattr_opt" >>$seqres.full # real QA test starts here _supported_fs ext3 ext4 _supported_os Linux -_need_to_be_root _require_scratch rm -f $seqres.full diff --git a/tests/xfs/003 b/tests/xfs/003 index 2eed40fbf..0fd4cfa08 100755 --- a/tests/xfs/003 +++ b/tests/xfs/003 @@ -35,8 +35,6 @@ here=`pwd` status=0 # success is the default! trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 -_need_to_be_root - # real QA test starts here _supported_fs xfs _supported_os IRIX Linux diff --git a/tests/xfs/004 b/tests/xfs/004 index cf1728674..59b899778 100755 --- a/tests/xfs/004 +++ b/tests/xfs/004 @@ -60,7 +60,6 @@ _populate_scratch() _supported_fs xfs _supported_os IRIX Linux -_need_to_be_root _require_scratch _require_no_large_scratch_dev diff --git a/tests/xfs/067 b/tests/xfs/067 index 27f57135a..c68ec0940 100755 --- a/tests/xfs/067 +++ b/tests/xfs/067 @@ -40,7 +40,6 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 _supported_fs xfs _supported_os Linux -_need_to_be_root _require_attrs _require_acls _require_scratch diff --git a/tests/xfs/114 b/tests/xfs/114 index f8601ec90..50cc71b60 100755 --- a/tests/xfs/114 +++ b/tests/xfs/114 @@ -309,7 +309,6 @@ _supported_os IRIX _require_scratch _require_attrs -_need_to_be_root rm -f $seqres.full diff --git a/tests/xfs/189 b/tests/xfs/189 index 540a0d7b4..636f6f056 100755 --- a/tests/xfs/189 +++ b/tests/xfs/189 @@ -236,7 +236,6 @@ _putback_scratch_fstab() _supported_fs xfs _supported_os Linux -_need_to_be_root _require_scratch _require_noattr2 -- 2.51.0