]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
ts-xtf-*: Provide for host specs on command line
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 1 Dec 2016 12:52:45 +0000 (12:52 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 6 Feb 2017 11:49:51 +0000 (11:49 +0000)
Without this, it can be hard to use in ad hoc ways.

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>
ts-xtf-fep
ts-xtf-run

index 6f0037a6ade40d25667353d93b1bfabbd398d333..91ac3ced40b32b3f66a44cfaf07607eee6313d5b 100755 (executable)
@@ -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);
index 2e69b2783f31ea9ec93899ab15bc52a6e0712e30..d405bfb80b90b3baf962c8cdc791f212a9a7c3ef 100755 (executable)
@@ -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;