* [PATCH] fstests: batch update of test file mode
@ 2017-08-03 5:53 Eryu Guan
2017-08-03 12:10 ` Brian Foster
0 siblings, 1 reply; 2+ messages in thread
From: Eryu Guan @ 2017-08-03 5:53 UTC (permalink / raw)
To: fstests; +Cc: Eryu Guan
Some tests don't have x permission set in mode, git complains about
file mode change after running tests in fstests git repo dir. So
change all such tests to 755 mode. Performed by:
find tests ! -perm /111 -name [0-9][0-9][0-9] -exec chmod 755 {} \;
Signed-off-by: Eryu Guan <eguan@redhat.com>
---
We've done this several times before, now I've written a local
post-applypatch hook that will detect & change the wrong test file
permissions and prompt to do 'git commit --amend'. Hope that this is the
last commit to do such changes..
Eryu
tests/generic/340 | 0
tests/generic/341 | 0
tests/generic/342 | 0
tests/generic/344 | 0
tests/generic/345 | 0
tests/generic/346 | 0
tests/generic/354 | 0
tests/generic/408 | 0
8 files changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 tests/generic/340
mode change 100644 => 100755 tests/generic/341
mode change 100644 => 100755 tests/generic/342
mode change 100644 => 100755 tests/generic/344
mode change 100644 => 100755 tests/generic/345
mode change 100644 => 100755 tests/generic/346
mode change 100644 => 100755 tests/generic/354
mode change 100644 => 100755 tests/generic/408
diff --git a/tests/generic/340 b/tests/generic/340
old mode 100644
new mode 100755
diff --git a/tests/generic/341 b/tests/generic/341
old mode 100644
new mode 100755
diff --git a/tests/generic/342 b/tests/generic/342
old mode 100644
new mode 100755
diff --git a/tests/generic/344 b/tests/generic/344
old mode 100644
new mode 100755
diff --git a/tests/generic/345 b/tests/generic/345
old mode 100644
new mode 100755
diff --git a/tests/generic/346 b/tests/generic/346
old mode 100644
new mode 100755
diff --git a/tests/generic/354 b/tests/generic/354
old mode 100644
new mode 100755
diff --git a/tests/generic/408 b/tests/generic/408
old mode 100644
new mode 100755
--
2.13.3
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] fstests: batch update of test file mode
2017-08-03 5:53 [PATCH] fstests: batch update of test file mode Eryu Guan
@ 2017-08-03 12:10 ` Brian Foster
0 siblings, 0 replies; 2+ messages in thread
From: Brian Foster @ 2017-08-03 12:10 UTC (permalink / raw)
To: Eryu Guan; +Cc: fstests
On Thu, Aug 03, 2017 at 01:53:04PM +0800, Eryu Guan wrote:
> Some tests don't have x permission set in mode, git complains about
> file mode change after running tests in fstests git repo dir. So
> change all such tests to 755 mode. Performed by:
>
> find tests ! -perm /111 -name [0-9][0-9][0-9] -exec chmod 755 {} \;
>
> Signed-off-by: Eryu Guan <eguan@redhat.com>
> ---
>
> We've done this several times before, now I've written a local
> post-applypatch hook that will detect & change the wrong test file
> permissions and prompt to do 'git commit --amend'. Hope that this is the
> last commit to do such changes..
>
Reviewed-by: Brian Foster <bfoster@redhat.com>
> Eryu
>
> tests/generic/340 | 0
> tests/generic/341 | 0
> tests/generic/342 | 0
> tests/generic/344 | 0
> tests/generic/345 | 0
> tests/generic/346 | 0
> tests/generic/354 | 0
> tests/generic/408 | 0
> 8 files changed, 0 insertions(+), 0 deletions(-)
> mode change 100644 => 100755 tests/generic/340
> mode change 100644 => 100755 tests/generic/341
> mode change 100644 => 100755 tests/generic/342
> mode change 100644 => 100755 tests/generic/344
> mode change 100644 => 100755 tests/generic/345
> mode change 100644 => 100755 tests/generic/346
> mode change 100644 => 100755 tests/generic/354
> mode change 100644 => 100755 tests/generic/408
>
> diff --git a/tests/generic/340 b/tests/generic/340
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/341 b/tests/generic/341
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/342 b/tests/generic/342
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/344 b/tests/generic/344
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/345 b/tests/generic/345
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/346 b/tests/generic/346
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/354 b/tests/generic/354
> old mode 100644
> new mode 100755
> diff --git a/tests/generic/408 b/tests/generic/408
> old mode 100644
> new mode 100755
> --
> 2.13.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-03 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-03 5:53 [PATCH] fstests: batch update of test file mode Eryu Guan
2017-08-03 12:10 ` Brian Foster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox