FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] tools/mvtest: ensure testcase is executable (755)
@ 2023-09-06  7:13 Shiyang Ruan
  2023-09-07 10:25 ` Zorro Lang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Shiyang Ruan @ 2023-09-06  7:13 UTC (permalink / raw)
  To: fstests; +Cc: ruansy.fnst

Some test cases lack executable permission ('x'). Before running each
test case, `./check` checks and grants them 'x' permission. However,
this always leads to a dirty git repo. And the absence of 'x' permission
in test cases is often overlooked during reviews.

Since maintainers use mvtest to assign new case, add this change for
convenience of maintainers.

Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
---
 tools/mvtest | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/mvtest b/tools/mvtest
index 99b154142..e839f0256 100755
--- a/tools/mvtest
+++ b/tools/mvtest
@@ -28,6 +28,8 @@ append() {
 test "${src}" != "${dest}" || die "Test \"${src}\" is the same as dest."
 test -e "tests/${src}" || die "Test \"${src}\" does not exist."
 test ! -e "tests/${dest}" || die "Test \"${src}\" already exists."
+# make sure testcase is executable
+test `stat -c '%a' tests/${src}` == 755 || chmod 755 "tests/${src}"
 
 sid="$(basename "${src}")"
 did="$(basename "${dest}")"
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-09-08 23:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-06  7:13 [PATCH] tools/mvtest: ensure testcase is executable (755) Shiyang Ruan
2023-09-07 10:25 ` Zorro Lang
2023-09-07 11:35 ` [PATCH v2] tools/mvtests: " Shiyang Ruan
2023-09-08  4:59   ` Zorro Lang
2023-09-07 13:54 ` [PATCH] tools/mvtest: " Zorro Lang
2023-09-08  2:13   ` Shiyang Ruan
2023-09-08  4:02     ` Zorro Lang
2023-09-08  5:43 ` [PATCH v3] " Shiyang Ruan
2023-09-08 23:36   ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox