From: Ian Campbell <Ian.Campbell@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH 2/2] cs-adjust-flight: runvar-perlop: Do not report non-changes
Date: Fri, 14 Nov 2014 16:29:22 +0000 [thread overview]
Message-ID: <1415982562.7113.24.camel@citrix.com> (raw)
In-Reply-To: <1415982424-7007-2-git-send-email-ian.jackson@eu.citrix.com>
On Fri, 2014-11-14 at 16:27 +0000, Ian Jackson wrote:
> With -v, runvar-perlop would unconditionally print a message about the
> changed variable. Instead, only call runvar_set if the value is to
> change.
>
> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
> ---
> cs-adjust-flight | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/cs-adjust-flight b/cs-adjust-flight
> index 7ec17e3..d6cab1a 100755
> --- a/cs-adjust-flight
> +++ b/cs-adjust-flight
> @@ -268,7 +268,8 @@ sub change__runvar_perlop {
> my ($job, $name, $varrow) = @_;
> my $oldval = $varrow->{val};
> my $newval = perlop_value($job, $name, $op, $oldval);
> - runvar_set($job, $name, $newval, " (modified from \`$oldval')");
> + runvar_set($job, $name, $newval, " (modified from \`$oldval')")
> + if $newval ne $oldval;
> }, 'IGNORE');
> }
>
next prev parent reply other threads:[~2014-11-14 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 16:27 [OSSTEST PATCH 1/2] target_editfile: Improve doc comment Ian Jackson
2014-11-14 16:27 ` [OSSTEST PATCH 2/2] cs-adjust-flight: runvar-perlop: Do not report non-changes Ian Jackson
2014-11-14 16:29 ` Ian Campbell [this message]
2014-11-14 16:28 ` [OSSTEST PATCH 1/2] target_editfile: Improve doc comment Ian Campbell
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=1415982562.7113.24.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.