Re: [PATCH 2/2] selftests/damon: make selftests executable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/18/22 1:24 AM, SeongJae Park wrote:
On Fri, 18 Feb 2022 09:01:11 +0100 Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:

On Fri, Feb 18, 2022 at 07:52:54AM +0000, SeongJae Park wrote:
Hello Yuanchu,

Thank you for this patch!

On Fri, 18 Feb 2022 00:10:17 +0000 Yuanchu Xie <yuanchu@xxxxxxxxxx> wrote:

The damon selftests do not have the executable bit on. We fix that by
setting the x bits on the .sh files similar to other existing shell
selftests.

Fixes: 9ab3b0c8ef62 ("selftests/damon: split test cases")
Signed-off-by: Yuanchu Xie <yuanchu@xxxxxxxxxx>

Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>

This type of change does not work outside of git, so why not just make
the tool that calls these scripts not care about the executable bit like
we do for other scripts?

Actually, we made kselftest receives scripts having no executable bit[1],
though it still prints warning.  I guess Yuanchu wants to remove the warning?

To remove the warning, simply making kselftest (runner.sh) stop printing the
warning message might make more sense.  Nevertheless, it's also true that
letting some scripts have executable bits while others not looks inconsistent
to me.  That's why I left the warning message there.  Should we remove the
warning from kselftest and remove executable bits from other selftest test
scripts?  Or, let the inconsistency be?  I have no real opinion here, so just
wanted to hear others' opinion if possible.


I don't recall why we decided to add the check in runner.sh - let's keep them
consistent with the rest of the scripts. If we get rid of the check, we can
make the change then.

thanks,
-- Shuah




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux