xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>
Subject: [OSSTEST PATCH 4/4] ts-xtf-*: Provide for host specs on command line
Date: Fri, 2 Dec 2016 11:55:40 +0000	[thread overview]
Message-ID: <1480679740-32372-4-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1480679740-32372-1-git-send-email-ian.jackson@eu.citrix.com>

Without this, it can be hard to use in ad hoc ways.

CC: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 ts-xtf-fep | 4 +++-
 ts-xtf-run | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ts-xtf-fep b/ts-xtf-fep
index 6f0037a..91ac3ce 100755
--- a/ts-xtf-fep
+++ b/ts-xtf-fep
@@ -22,7 +22,9 @@ use Osstest::TestSupport;
 
 tsreadconfig();
 
-our $ho = selecthost('host');
+our ($whhost) = @ARGV;
+$whhost ||= 'host';
+our $ho= selecthost($whhost);
 
 sub fep_test () {
     my $output = target_cmd_output_root($ho, <<END);
diff --git a/ts-xtf-run b/ts-xtf-run
index 2e69b27..d405bfb 100755
--- a/ts-xtf-run
+++ b/ts-xtf-run
@@ -22,7 +22,9 @@ use Osstest::TestSupport;
 
 tsreadconfig();
 
-our $ho = selecthost('host');
+our ($whhost) = @ARGV;
+$whhost ||= 'host';
+our $ho= selecthost($whhost);
 
 our $runner = "/home/xtf/xtf-runner";
 our @tests;
-- 
2.1.4


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

  parent reply	other threads:[~2016-12-02 11:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02 11:55 [OSSTEST PATCH 1/4] cs-ajust-flight: Use qr{} syntax Ian Jackson
2016-12-02 11:55 ` [OSSTEST PATCH 2/4] cs-adjust-flight: Lift notspec_exfn out of for_things Ian Jackson
2016-12-02 11:55 ` [OSSTEST PATCH 3/4] cs-ajust-flight: Provide runvar-build-set Ian Jackson
2016-12-02 11:55 ` Ian Jackson [this message]
2016-12-02 11:57   ` [OSSTEST PATCH 4/4] ts-xtf-*: Provide for host specs on command line Wei Liu
2017-02-05 16:42   ` Wei Liu

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=1480679740-32372-4-git-send-email-ian.jackson@eu.citrix.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=wei.liu2@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).