From: Laurent Vivier <lvivier@redhat.com>
To: Andrew Jones <drjones@redhat.com>, kvm@vger.kernel.org
Cc: rkrcmar@redhat.com, pbonzini@redhat.com, thuth@redhat.com
Subject: Re: [PATCH kvm-unit-tests v3 5/9] mkstandalone: provide errata to tests
Date: Tue, 13 Jun 2017 14:15:13 +0200 [thread overview]
Message-ID: <8be0d4b5-abb2-a26b-d5a8-ff256ddd1d31@redhat.com> (raw)
In-Reply-To: <20170613115451.6240-6-drjones@redhat.com>
On 13/06/2017 13:54, Andrew Jones wrote:
> Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
> ---
> configure | 1 +
> scripts/arch-run.bash | 4 ++--
> scripts/mkstandalone.sh | 6 ++++++
> 3 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index cde2cfe9db61..e1efb3ca0cca 100755
> --- a/configure
> +++ b/configure
> @@ -194,5 +194,6 @@ FIRMWARE=$firmware
> ENDIAN=$endian
> PRETTY_PRINT_STACKS=$pretty_print_stacks
> ENVIRON_DEFAULT=$environ_default
> +ERRATATXT=errata.txt
> U32_LONG_FMT=$u32_long
> EOF
> diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash
> index 27b8531fcfcf..7c6c79ad3a9d 100644
> --- a/scripts/arch-run.bash
> +++ b/scripts/arch-run.bash
> @@ -196,9 +196,9 @@ env_generate_errata ()
> kernel_sublevel=${kernel_sublevel%%[!0-9]*}
>
> [ "$ENVIRON_DEFAULT" != "yes" ] && return
> - [ ! -f errata.txt ] && return
> + [ ! -f "$ERRATATXT" ] && return
>
> - for line in $(grep -v '^#' errata.txt | tr -d '[:blank:]' | cut -d: -f1,2); do
> + for line in $(grep -v '^#' "$ERRATATXT" | tr -d '[:blank:]' | cut -d: -f1,2); do
> commit=${line%:*}
> minver=${line#*:}
>
> diff --git a/scripts/mkstandalone.sh b/scripts/mkstandalone.sh
> index 55cfc4ef8c00..a15941f75375 100755
> --- a/scripts/mkstandalone.sh
> +++ b/scripts/mkstandalone.sh
> @@ -40,6 +40,7 @@ generate_test ()
>
> echo "#!/usr/bin/env bash"
> echo "export STANDALONE=yes"
> + echo "export ENVIRON_DEFAULT=yes"
> echo "export HOST=\$(uname -m | sed -e 's/i.86/i386/;s/arm.*/arm/;s/ppc64.*/ppc64/')"
> echo "export PRETTY_PRINT_STACKS=no"
>
> @@ -62,6 +63,11 @@ generate_test ()
> echo 'export FIRMWARE'
> fi
>
> + if [ "$ERRATATXT" ]; then
> + temp_file ERRATATXT "$ERRATATXT"
> + echo 'export ERRATATXT'
> + fi
> +
> temp_file bin "$kernel"
> args[3]='$bin'
>
>
next prev parent reply other threads:[~2017-06-13 12:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 11:54 [PATCH kvm-unit-tests v3 0/9] Extend and apply the errata framework Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 1/9] arch-run: introduce initrd_create Andrew Jones
2017-06-13 12:09 ` Laurent Vivier
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 2/9] arch-run: provide errata from run env Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 3/9] x86/run: source config.mak Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 4/9] arch-run: generate errata when no environ is provided Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 5/9] mkstandalone: provide errata to tests Andrew Jones
2017-06-13 12:15 ` Laurent Vivier [this message]
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 6/9] errata: add ERRATA_FORCE Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 7/9] README: add section on guarding unsafe tests Andrew Jones
2017-06-13 12:15 ` Laurent Vivier
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 8/9] AArch32: apply errata framework to unsafe pmccntr64 test Andrew Jones
2017-06-13 11:54 ` [PATCH kvm-unit-tests v3 9/9] arm/arm64: apply errata framework to unsafe cpu-on test Andrew Jones
2017-06-14 18:58 ` [PATCH kvm-unit-tests v3 0/9] Extend and apply the errata framework Radim Krčmář
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=8be0d4b5-abb2-a26b-d5a8-ff256ddd1d31@redhat.com \
--to=lvivier@redhat.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=thuth@redhat.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