Skip to contentSkip to conversation

fstests: batch update of test file mode

PATCH In review Eryu Guan 2 participants 2 messages Aug 3, 2017

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 fstests: batch update of test file mode

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 {} \;

---

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
tests/generic/340 +0 -0
old mode 100644
new mode 100755
tests/generic/341 +0 -0
old mode 100644
new mode 100755
tests/generic/342 +0 -0
old mode 100644
new mode 100755
tests/generic/344 +0 -0
old mode 100644
new mode 100755
tests/generic/345 +0 -0
old mode 100644
new mode 100755
tests/generic/346 +0 -0
old mode 100644
new mode 100755
tests/generic/354 +0 -0
old mode 100644
new mode 100755
tests/generic/408 +0 -0
old mode 100644
new mode 100755
Signature · 1 line
2.13.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · 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 {} \;

Quoted 8 lines

---

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..

Quoted 51 lines

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
tests/generic/340 +0 -0
old mode 100644
new mode 100755
tests/generic/341 +0 -0
old mode 100644
new mode 100755
tests/generic/342 +0 -0
old mode 100644
new mode 100755
tests/generic/344 +0 -0
old mode 100644
new mode 100755
tests/generic/345 +0 -0
old mode 100644
new mode 100755
tests/generic/346 +0 -0
old mode 100644
new mode 100755
tests/generic/354 +0 -0
old mode 100644
new mode 100755
tests/generic/408 +0 -0
old mode 100644
new mode 100755
Signature · 6 lines
2.13.3

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html