From: Shuah Khan <skhan@linuxfoundation.org>
To: Zhao Gongyi <zhaogongyi@huawei.com>,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Cc: shuah@kernel.org, akpm@linux-foundation.org,
akinobu.mita@gmail.com, Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH -next 3/5] selftests/cpu-hotplug: Delete fault injection related code
Date: Wed, 31 Aug 2022 17:32:51 -0600 [thread overview]
Message-ID: <61795f45-bc48-7be8-5787-cdf6ec4b761c@linuxfoundation.org> (raw)
In-Reply-To: <20220830083028.45504-4-zhaogongyi@huawei.com>
On 8/30/22 02:30, Zhao Gongyi wrote:
> Delete fault injection related code since the module has been deleted.
>
> Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com>
> ---
> tools/testing/selftests/cpu-hotplug/config | 1 -
> .../selftests/cpu-hotplug/cpu-on-off-test.sh | 105 +-----------------
> 2 files changed, 2 insertions(+), 104 deletions(-)
> delete mode 100644 tools/testing/selftests/cpu-hotplug/config
>
> diff --git a/tools/testing/selftests/cpu-hotplug/config b/tools/testing/selftests/cpu-hotplug/config
> deleted file mode 100644
> index d4aca2ad5069..000000000000
> --- a/tools/testing/selftests/cpu-hotplug/config
> +++ /dev/null
> @@ -1 +0,0 @@
> -CONFIG_NOTIFIER_ERROR_INJECTION=y
> diff --git a/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh b/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh
> index 19028c4c9758..ade75d920cd6 100755
> --- a/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh
> +++ b/tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh
> @@ -110,19 +110,6 @@ online_cpu_expect_success()
> fi
> }
>
> -online_cpu_expect_fail()
> -{
> - local cpu=$1
> -
> - if online_cpu $cpu 2> /dev/null; then
> - echo $FUNCNAME $cpu: unexpected success >&2
> - exit 1
> - elif ! cpu_is_offline $cpu; then
> - echo $FUNCNAME $cpu: unexpected online >&2
> - exit 1
> - fi
> -}
> -
Keep this code - this could be useful to test the case of running
online test on cpu that is online and expect that to fail.
> offline_cpu_expect_success()
> {
> local cpu=$1
> @@ -136,22 +123,7 @@ offline_cpu_expect_success()
> fi
> }
>
> -offline_cpu_expect_fail()
> -{
> - local cpu=$1
> -
> - if offline_cpu $cpu 2> /dev/null; then
> - echo $FUNCNAME $cpu: unexpected success >&2
> - exit 1
> - elif ! cpu_is_online $cpu; then
> - echo $FUNCNAME $cpu: unexpected offline >&2
> - exit 1
> - fi
> -}
> -
Keep this code - this could be useful to test the case of running
offline test on cpu that is offline and expect that to fail.
Remove just the fault injection code and these aren't really specific
to fault injection even though they are currently being used by the
fault injection path.
thanks,
-- Shuah
next prev parent reply other threads:[~2022-08-31 23:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 8:30 [PATCH -next 0/5] Optimize and bugfix for cpu-on-off-test.sh Zhao Gongyi
2022-08-30 8:30 ` [PATCH -next 1/5] selftests/cpu-hotplug: Correct log info Zhao Gongyi
2022-08-30 8:30 ` [PATCH -next 2/5] selftests/cpu-hotplug: Replace exit with return Zhao Gongyi
2022-08-31 23:24 ` Shuah Khan
2022-08-30 8:30 ` [PATCH -next 3/5] selftests/cpu-hotplug: Delete fault injection related code Zhao Gongyi
2022-08-31 23:32 ` Shuah Khan [this message]
2022-08-30 8:30 ` [PATCH -next 4/5] selftests/cpu-hotplug: Reserve one cpu online at least Zhao Gongyi
2022-08-30 8:30 ` [PATCH -next 5/5] selftests/cpu-hotplug: Add log info when test success Zhao Gongyi
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=61795f45-bc48-7be8-5787-cdf6ec4b761c@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=akinobu.mita@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=zhaogongyi@huawei.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