[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250514053644.q2yzlhceclxvvffn@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com>
Date: Wed, 14 May 2025 13:36:44 +0800
From: Zorro Lang <zlang@...hat.com>
To: "Nirjhar Roy (IBM)" <nirjhar.roy.lists@...il.com>
Cc: fstests@...r.kernel.org, linux-ext4@...r.kernel.org,
linux-xfs@...r.kernel.org, ritesh.list@...il.com,
ojaswin@...ux.ibm.com, djwong@...nel.org, zlang@...nel.org,
david@...morbit.com
Subject: Re: [PATCH v1 1/3] new: Add a new parameter (name/emailid) in the
"new" script
On Tue, May 13, 2025 at 08:10:10AM +0000, Nirjhar Roy (IBM) wrote:
> This patch another optional interactive prompt to enter the
> author name and email id for each new test file that is
> created using the "new" file.
>
> The sample output looks like something like the following:
>
> ./new selftest
> Next test id is 007
> Append a name to the ID? Test name will be 007-$name. y,[n]:
> Creating test file '007'
> Add to group(s) [auto] (separate by space, ? for list): selftest quick
> Enter <author_name> <email-id>: Nirjhar Roy <nirjhar.roy.lists@...il.com>
> Creating skeletal script for you to edit ...
> done.
>
> ...
> ...
>
> Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@...il.com>
> ---
> new | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/new b/new
> index 6b50ffed..139715bf 100755
> --- a/new
> +++ b/new
> @@ -136,6 +136,9 @@ else
> check_groups "${new_groups[@]}" || exit 1
> fi
>
> +read -p "Enter <author_name> <email-id>: " -r
I think most of "YOUR NAME HERE" are the name of company, e.g.
"Oracle, Inc", "Red Hat, Inc". Some authors just write their names, e.g.
"Filipe Manana", "Chao Yu"...
So I think the "<email-id>" hint isn't necessary. If someone need that, he
can write it with his name together.
Thanks,
Zorro
> +author_name="${REPLY:=YOUR NAME HERE}"
> +
> echo -n "Creating skeletal script for you to edit ..."
>
> year=`date +%Y`
> @@ -143,7 +146,7 @@ year=`date +%Y`
> cat <<End-of-File >$tdir/$id
> #! /bin/bash
> # SPDX-License-Identifier: GPL-2.0
> -# Copyright (c) $year YOUR NAME HERE. All Rights Reserved.
> +# Copyright (c) $year $author_name. All Rights Reserved.
> #
> # FS QA Test $id
> #
> --
> 2.34.1
>
>
Powered by blists - more mailing lists