From patchwork Fri Dec 2 11:55:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9458309 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D4D7C60515 for ; Fri, 2 Dec 2016 11:57:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB672284AB for ; Fri, 2 Dec 2016 11:57:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C00F4284F0; Fri, 2 Dec 2016 11:57:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7A140284AB for ; Fri, 2 Dec 2016 11:57:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCmRV-0003yo-W9; Fri, 02 Dec 2016 11:55:53 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCmRV-0003xs-Ay for xen-devel@lists.xenproject.org; Fri, 02 Dec 2016 11:55:53 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id 6F/29-28843-84161485; Fri, 02 Dec 2016 11:55:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRWlGSWpSXmKPExsXitHSDva5HomO EwbxzzBbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aOZzsYC06zVyx4soC9gXErWxcjJ4eEgL/E p4etLCA2m4CuRNOWv0BxDg4RARWJ23sNuhi5OJgFFjBKbHjaywpSIyzgK9HWfYQJxGYBqjnQ+ 4UdxOYV8JSYd3wDO8RMOYnzx38yg9icAl4S98/OB7OFgGqmNCxhBZkvJKAmMXd9PESroMTJmU /ATmAWkJA4+OIF8wRG3llIUrOQpBYwMq1iVC9OLSpLLdI10UsqykzPKMlNzMzRNTQw08tNLS5 OTE/NSUwq1kvOz93ECAwcBiDYwdh92f8QoyQHk5IoL4eGY4QQX1J+SmVGYnFGfFFpTmrxIUYZ Dg4lCV75BKCcYFFqempFWmYOMIRh0hIcPEoivBIgad7igsTc4sx0iNQpRmOOac8WP2XiOPB+x VMmIZa8/LxUKXFeNZBSAZDSjNI8uEGw2LrEKCslzMsIdJoQT0FqUW5mCar8K0ZxDkYlYd44kC k8mXklcPteAZ3CBHRKx3V7kFNKEhFSUg2M81ev2cKhfOdrYdTDefdPWizLCLB/ucwuZncoI6t 55ByrE9mMbd+tDASn3I5+9vjNzCtus6z+ZJyZ0DvtwDquJTc3ZnHwzc6f09D6deechJRJJ1KX 5b3cuvrk6n/PuloydkZ2zX7n7KozS3cvQ/CJa5/dW7hkihnFrgfmMd+NllbKWnXLJGfVHyWW4 oxEQy3mouJEAMnlNrioAgAA X-Env-Sender: prvs=13734adc3=Ian.Jackson@citrix.com X-Msg-Ref: server-5.tower-21.messagelabs.com!1480679749!38346283!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.0.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8505 invoked from network); 2 Dec 2016 11:55:51 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 2 Dec 2016 11:55:51 -0000 X-IronPort-AV: E=Sophos;i="5.33,729,1477958400"; d="scan'208";a="401462029" From: Ian Jackson To: Date: Fri, 2 Dec 2016 11:55:40 +0000 Message-ID: <1480679740-32372-4-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480679740-32372-1-git-send-email-ian.jackson@eu.citrix.com> References: <1480679740-32372-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Cc: Wei Liu , Ian Jackson , Andrew Cooper Subject: [Xen-devel] [OSSTEST PATCH 4/4] ts-xtf-*: Provide for host specs on command line X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Without this, it can be hard to use in ad hoc ways. CC: Wei Liu CC: Andrew Cooper Signed-off-by: Ian Jackson Reviewed-by: Wei Liu --- 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, <