From: Shuah Khan <shuah@kernel.org>
To: Amit Pundir <amit.pundir@linaro.org>,
kselftest <linux-kselftest@vger.kernel.org>,
lkml <linux-kernel@vger.kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Luis R . Rodriguez" <mcgrof@kernel.org>,
Masami Hiramatsu <masami.hiramatsu@linaro.org>,
Sumit Semwal <sumit.semwal@linaro.org>,
Shuah Khan <shuahkh@osg.samsung.com>,
Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH 1/2] selftests: firmware: skip unsupported async loading tests
Date: Wed, 8 Nov 2017 09:29:12 -0700 [thread overview]
Message-ID: <85203891-7a4e-5a86-d401-5df36bd4db4b@kernel.org> (raw)
In-Reply-To: <1510141660-31612-2-git-send-email-amit.pundir@linaro.org>
On 11/08/2017 04:47 AM, Amit Pundir wrote:
> Ignore async firmware loading tests on older kernel releases,
> which do not support this feature.
>
> Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
> ---
> tools/testing/selftests/firmware/fw_filesystem.sh | 34 ++++++++++++++---------
> 1 file changed, 21 insertions(+), 13 deletions(-)
>
> diff --git a/tools/testing/selftests/firmware/fw_filesystem.sh b/tools/testing/selftests/firmware/fw_filesystem.sh
> index 62f2d6f54929..b1f20fef36c7 100755
> --- a/tools/testing/selftests/firmware/fw_filesystem.sh
> +++ b/tools/testing/selftests/firmware/fw_filesystem.sh
> @@ -70,9 +70,13 @@ if printf '\000' >"$DIR"/trigger_request 2> /dev/null; then
> exit 1
> fi
>
> -if printf '\000' >"$DIR"/trigger_async_request 2> /dev/null; then
> - echo "$0: empty filename should not succeed (async)" >&2
> - exit 1
> +if [ ! -e "$DIR"/trigger_async_request ]; then
> + echo "$0: empty filename: async trigger not supported" >&2
> +else
> + if printf '\000' >"$DIR"/trigger_async_request 2> /dev/null; then
> + echo "$0: empty filename should not succeed (async)" >&2
> + exit 1
> + fi
> fi
>
> # Request a firmware that doesn't exist, it should fail.
> @@ -105,17 +109,21 @@ else
> fi
>
> # Try the asynchronous version too
> -if ! echo -n "$NAME" >"$DIR"/trigger_async_request ; then
> - echo "$0: could not trigger async request" >&2
> - exit 1
> -fi
> -
> -# Verify the contents are what we expect.
> -if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then
> - echo "$0: firmware was not loaded (async)" >&2
> - exit 1
> +if [ ! -e "$DIR"/trigger_async_request ]; then
> + echo "$0: firmware loading: async trigger not supported" >&2
Please make this message consistent with the rest when a test is ignored
as in the following tomake it clear what is being done.
fw_fallback.sh: echo "usermode helper disabled so ignoring test"
fw_filesystem.sh: echo "Configuration triggers not present, ignoring test"
thanks,
-- Shuah
next prev parent reply other threads:[~2017-11-08 16:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 11:47 [PATCH 0/2] selftests: firmware: skip testing unsupported features Amit Pundir
2017-11-08 11:47 ` [PATCH 1/2] selftests: firmware: skip unsupported async loading tests Amit Pundir
2017-11-08 12:41 ` Greg Kroah-Hartman
2017-11-08 16:29 ` Shuah Khan [this message]
2017-11-08 11:47 ` [PATCH 2/2] selftests: firmware: skip unsupported custom firmware fallback tests Amit Pundir
2017-11-08 12:41 ` Greg Kroah-Hartman
2017-11-08 16:34 ` Shuah Khan
2017-11-08 12:46 ` [PATCH 0/2] selftests: firmware: skip testing unsupported features Sumit Semwal
2017-11-08 16:28 ` Shuah Khan
2017-11-08 16:49 ` Luis R. Rodriguez
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=85203891-7a4e-5a86-d401-5df36bd4db4b@kernel.org \
--to=shuah@kernel.org \
--cc=amit.pundir@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=masami.hiramatsu@linaro.org \
--cc=mcgrof@kernel.org \
--cc=shuahkh@osg.samsung.com \
--cc=sumit.semwal@linaro.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