All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST] make-flight: Support specifying a mini-os tree+revision
Date: Fri, 15 Jan 2016 17:40:24 +0000	[thread overview]
Message-ID: <1452879624.6020.96.camel@citrix.com> (raw)
In-Reply-To: <22169.10091.692861.917183@mariner.uk.xensource.com>

On Fri, 2016-01-15 at 17:07 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH OSSTEST] make-flight: Support specifying
> a mini-os tree+revision"):
> > On Fri, 2015-12-11 at 15:16 +0000, Ian Jackson wrote:
> >     unable to determine vcs
> >     bash: line 5: fail: command not found
> > 
> > I'm not sure if this is a bug (i.e. it was intended to be "echo fail")
> > or
> > if it is deliberately using  a non-existent command (which seems risky
> > to
> > me).
> 
> It's deliberately using the command `fail' which is supposed to be in
> scope and fail.  I think this is harmless.

Where does that command come into scope from?

Are you thinking of the sub fail() in Perl (from Osstest::TestSupport)?

The fail quoted above is from:
    sub dir_identify_vcs ($$) {
        my ($ho,$dir) = @_;
        return target_cmd_output($ho, <<END);
            set -e
            if ! test -e $dir; then echo none; exit 0; fi
            cd $dir
            (test -e .git && echo git) ||
            (test -d .hg && echo hg) ||
            (echo >&2 'unable to determine vcs'; fail)
    END
    }

i.e. it is in a shell snippet run on the target. I'm not sure where fail
would come into scope in that context. I don't see it in the tcmd
infrastructure.

> > All the other store_revisions refer to the symlink rather than the
> > -remote
> > which is the actual clone (when one is made), so I don't think
> > s#extras/mini-os#extras/mini-os-remote# is the answer. Perhaps "fail"
> > should become "echo fail" and store_revision should treat that like it
> > does
> > fail (which is to accept it if $optional).
> 
> That would be tolerable, I think.  It's probably the best answer.

I'll wait and check I'm not terribly confused above before moving in this
direction.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2016-01-15 17:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 13:56 [PATCH OSSTEST] make-flight: Support specifying a mini-os tree+revision Ian Campbell
2015-12-11 15:16 ` Ian Jackson
2015-12-16  9:32   ` Ian Campbell
2016-01-15 16:28     ` Ian Campbell
2016-01-15 17:07     ` Ian Jackson
2016-01-15 17:40       ` Ian Campbell [this message]

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=1452879624.6020.96.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.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.