De-duplication: Remove requirement of needs_tmpdir
PATCH 1/1 De-duplication: Remove requirement of needs_tmpdir
The flag is not needed to be set when use these flags: '.all_filesystems', '.format_device', '.mntpoint', '.mount_device' '.needs_checkpoints', '.needs_device', '.resource_file'. These flags imply creating temporary directory.
For those:
fanotify13.c setxattr01.c fanotify16.c close_range01.c clone301.c fanotify09.c
Signed-off-by Zhao Gongyi <[email protected]>
--- testcases/kernel/syscalls/clone3/clone301.c | 1 - testcases/kernel/syscalls/close_range/close_range01.c | 1 - testcases/kernel/syscalls/fanotify/fanotify09.c | 1 - testcases/kernel/syscalls/fanotify/fanotify13.c | 1 - testcases/kernel/syscalls/fanotify/fanotify16.c | 1 - testcases/kernel/syscalls/setxattr/setxattr01.c | 1 - 6 files changed, 6 deletions(-)
testcases/kernel/syscalls/clone3/clone301.c +0 -1
@@ -172,7 +172,6 @@ static struct tst_test test = { .test = run, .setup = setup, .needs_root = 1, - .needs_tmpdir = 1, .needs_checkpoints = 1, .bufs = (struct tst_buffers []) { {&args, .size =sizeof (*args)},
testcases/kernel/syscalls/close_range/close_range01.c +0 -1
@@ -190,7 +190,6 @@ static void run(unsigned int n)static struct tst_test test = { .tcnt =4 , - .needs_tmpdir =1 , .forks_child =1 , .mount_device =1 , .mntpoint ="mnt" ,
testcases/kernel/syscalls/fanotify/fanotify09.c +0 -1
@@ -365,7 +365,6 @@ static struct tst_test test = { .cleanup = cleanup, .mount_device = 1, .mntpoint = MOUNT_PATH, - .needs_tmpdir = 1, .needs_root = 1, .tags = (const struct tst_tag []) { {"linux-git" ,"54a307ba8d3c" },
testcases/kernel/syscalls/fanotify/fanotify13.c +0 -1
@@ -289,7 +289,6 @@ static struct tst_test test = { .setup = do_setup, .cleanup = do_cleanup, .needs_root = 1, - .needs_tmpdir = 1, .mount_device = 1, .mntpoint = MOUNT_PATH, .all_filesystems = 1,
testcases/kernel/syscalls/fanotify/fanotify16.c +0 -1
@@ -562,7 +562,6 @@ static struct tst_test test = { .mount_device = 1, .mntpoint = MOUNT_PATH, .all_filesystems = 1, - .needs_tmpdir = 1, .needs_root = 1 };
testcases/kernel/syscalls/setxattr/setxattr01.c +0 -1
@@ -210,7 +210,6 @@ static struct tst_test test = { .mntpoint = MNTPOINT, .mount_device = 1, .all_filesystems = 1, - .needs_tmpdir = 1, .needs_root = 1, };
--
2.17.1
Yang Xu
AppliedPATCH 1/1 De-duplication: Remove requirement of needs_tmpdir
Hi Gongyi
Quoted 4 lines
The flag is not needed to be set when use these flags: '.all_filesystems', '.format_device', '.mntpoint', '.mount_device' '.needs_checkpoints', '.needs_device', '.resource_file'. These flags imply creating temporary directory.
Merged, thanks!