diff mbox

[OSSTEST,4/4] ts-xtf-*: Provide for host specs on command line

Message ID 1480679740-32372-4-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson Dec. 2, 2016, 11:55 a.m. UTC
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(-)

Comments

Wei Liu Dec. 2, 2016, 11:57 a.m. UTC | #1
On Fri, Dec 02, 2016 at 11:55:40AM +0000, Ian Jackson wrote:
> 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>

Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Wei Liu Feb. 5, 2017, 4:42 p.m. UTC | #2
On Fri, Dec 02, 2016 at 11:55:40AM +0000, Ian Jackson wrote:
> 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>

Ian, I don't see this in master. You seem to have dropped it.

Wei.
diff mbox

Patch

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;