From: Petr Vorel <pvorel@suse.cz>
To: Yang Xu <xuyang2018.jy@fujitsu.com>
Cc: Wanlong Gao <gaowanlong@cn.fujitsu.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1 1/4] lib/tst_kvercmp: Remove old distnames
Date: Mon, 12 Dec 2022 16:30:20 +0100 [thread overview]
Message-ID: <Y5dJDFk5DpAhTKDV@pevik> (raw)
In-Reply-To: <1670845229-1981-1-git-send-email-xuyang2018.jy@fujitsu.com>
Hi,
> Our travis-ci has dropped or never used them, they are useless.
> So delete.
They were here before CI. They were meant for using by tests
(no CI related at all).
Added by Wanlong Gao ~10 years ago. Agree they can be dropped, but
Cc Cyril, Li and Jan.
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
> lib/tst_kvercmp.c | 12 ------------
> testcases/kernel/syscalls/inotify/inotify04.c | 13 +++----------
> .../kernel/tracing/dynamic_debug/dynamic_debug01.sh | 3 +--
> 3 files changed, 4 insertions(+), 24 deletions(-)
> diff --git a/lib/tst_kvercmp.c b/lib/tst_kvercmp.c
> index dc0daa746..a01b4332b 100644
> --- a/lib/tst_kvercmp.c
> +++ b/lib/tst_kvercmp.c
> @@ -134,18 +134,6 @@ const char *tst_kvcmp_distname(const char *kver)
> char *ret = distname;
> char *p = distname;
> - if (strstr(kver, ".el5uek"))
> - return "OL5UEK";
> -
> - if (strstr(kver, ".el5"))
> - return "RHEL5";
> -
> - if (strstr(kver, ".el6uek"))
> - return "OL6UEK";
> -
> - if (strstr(kver, ".el6"))
> - return "RHEL6";
> -
> if (strstr(kver, ".el7"))
> return "RHEL7";
> diff --git a/testcases/kernel/syscalls/inotify/inotify04.c b/testcases/kernel/syscalls/inotify/inotify04.c
> index fb9f5c293..c4fce399c 100644
> --- a/testcases/kernel/syscalls/inotify/inotify04.c
> +++ b/testcases/kernel/syscalls/inotify/inotify04.c
> @@ -50,11 +50,6 @@ char event_buf[EVENT_BUF_LEN];
> int fd_notify, reap_wd_file, reap_wd_dir, wd_dir, wd_file;
> -static struct tst_kern_exv kvers[] = {
> - { "RHEL5", "2.6.18-132" },
> - { NULL, NULL },
> -};
> -
> static void cleanup(void)
> {
> if (reap_wd_dir && myinotify_rm_watch(fd_notify, wd_dir) == -1)
> @@ -110,11 +105,9 @@ void verify_inotify(void)
> * This isn't well documented in inotify(7), but it's intuitive if you
> * understand how Unix works.
> */
> - if (tst_kvercmp2(2, 6, 25, kvers) >= 0) {
> - event_set[test_cnt].mask = IN_ATTRIB;
> - strcpy(event_set[test_cnt].name, "");
> - test_cnt++;
> - }
> + event_set[test_cnt].mask = IN_ATTRIB;
> + strcpy(event_set[test_cnt].name, "");
> + test_cnt++;
Isn't this unrelated change? I guess you remove it as part of cleanup of old
versions.
> event_set[test_cnt].mask = IN_DELETE_SELF;
> strcpy(event_set[test_cnt].name, TEST_FILE);
> diff --git a/testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh b/testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh
> index 4b159517b..ca6c840b1 100755
> --- a/testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh
> +++ b/testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh
> @@ -59,8 +59,7 @@ setup()
> tst_brk TBROK "Unable to find $DEBUGFS_CONTROL"
> fi
> - # Both patches with changes were backported to RHEL6 kernel 2.6.32-547
> - if tst_kvcmp -ge '3.4 RHEL6:2.6.32-547' ; then
> + if tst_kvcmp -ge 3.4 ; then
> NEW_INTERFACE=1
> EMPTY_FLAG="=_"
> fi
Maybe first remove it from tests and then from infrastructure?
But I'm ok to keep it in single patch, but commit message should be
adjusted to not mention CI (not related to CI at all).
Acked-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-12-12 15:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 11:40 [LTP] [PATCH v1 1/4] lib/tst_kvercmp: Remove old distnames Yang Xu
2022-12-12 11:40 ` [LTP] [PATCH v1 2/4] shell: Remove old kernel version check Yang Xu
2022-12-12 15:34 ` Petr Vorel
2022-12-13 3:08 ` xuyang2018.jy
2022-12-12 11:40 ` [LTP] [PATCH v1 3/4] Remove old kernel version check in C case when using tst_kvercmp Yang Xu
2022-12-12 15:38 ` Petr Vorel
2022-12-13 3:31 ` xuyang2018.jy
2022-12-12 11:40 ` [LTP] [PATCH v1 4/4] Remove old kernel version check when using min_kver Yang Xu
2022-12-12 15:30 ` Petr Vorel [this message]
2022-12-12 16:39 ` [LTP] [PATCH v1 1/4] lib/tst_kvercmp: Remove old distnames Jan Stancek
2022-12-13 2:31 ` xuyang2018.jy
2022-12-13 8:55 ` Jan Stancek
2022-12-13 9:40 ` Petr Vorel
2022-12-13 7:21 ` xuyang2018.jy
2022-12-13 2:34 ` xuyang2018.jy
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=Y5dJDFk5DpAhTKDV@pevik \
--to=pvorel@suse.cz \
--cc=gaowanlong@cn.fujitsu.com \
--cc=ltp@lists.linux.it \
--cc=xuyang2018.jy@fujitsu.com \
/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