public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <eguan@redhat.com>
To: fstests@vger.kernel.org
Cc: Eryu Guan <eguan@redhat.com>
Subject: [PATCH] fstests: batch update of test file mode
Date: Thu,  3 Aug 2017 13:53:04 +0800	[thread overview]
Message-ID: <20170803055304.20928-1-eguan@redhat.com> (raw)

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


             reply	other threads:[~2017-08-03  5:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03  5:53 Eryu Guan [this message]
2017-08-03 12:10 ` [PATCH] fstests: batch update of test file mode Brian Foster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170803055304.20928-1-eguan@redhat.com \
    --to=eguan@redhat.com \
    --cc=fstests@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox