From patchwork Tue Jul 12 17:40:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9225837 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 325AE6086B for ; Tue, 12 Jul 2016 17:43:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26AD327C14 for ; Tue, 12 Jul 2016 17:43:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19B7127D85; Tue, 12 Jul 2016 17:43:58 +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 EAB6327C14 for ; Tue, 12 Jul 2016 17:43:55 +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 1bN1fc-0004Zs-7X; Tue, 12 Jul 2016 17:40:32 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN1fa-0004YZ-Ic for xen-devel@lists.xenproject.org; Tue, 12 Jul 2016 17:40:30 +0000 Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id 04/70-08132-D8B25875; Tue, 12 Jul 2016 17:40:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRWlGSWpSXmKPExsXitHSDvW6vdmu 4wfblihbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bqS32MBetYKjY9us/cwHiXuYuRk0NCwF9i 35flLCA2m4CuRNOWv2xdjBwcIgIqErf3GoCEmQW0JfaumwtWLizgJ/Fp1z8wm0VAVWLOh4dgr bwCHhKz5n9lgxgpJ3H++E+wGk4BT4m/d84xgdhCQDUzJ51lBRkvJKAmMXd9PESroMTJmU9YIF ZJSBx88YIZpERCgFvib7f9BEa+WUiqZiGpWsDItIpRvTi1qCy1SNdYL6koMz2jJDcxM0fX0NB ELze1uDgxPTUnMalYLzk/dxMjMJgYgGAH490+50OMkhxMSqK87Vqt4UJ8SfkplRmJxRnxRaU5 qcWHGGU4OJQkeB1AcoJFqempFWmZOcCwhklLcPAoifA+1wRK8xYXJOYWZ6ZDpE4x6nIs+HF7L ZMQS15+XqqUOO8skBkCIEUZpXlwI2AxdolRVkqYlxHoKCGegtSi3MwSVPlXjOIcjErCvMUgU3 gy80rgNr0COoIJ6Ihah2aQI0oSEVJSDYw2T17nfaxvXy9t0/OFT61hr9LEnDijkDe6Rd9lOlZ nTlS6WKleW1FVIbE8dlqf4QP1hv73SqzSa+rucb6vyjc22cxnIJL95uq+5I+H1L6FrXwZEHJu i+0bm+OnlKvfvElaH9cSp1H0T/jF6UinvLo5y0Q7OpoMd3PP/qxQL/Gc60y30bn2qUosxRmJh lrMRcWJAErQ8d6sAgAA X-Env-Sender: prvs=994cbe670=Ian.Jackson@citrix.com X-Msg-Ref: server-12.tower-27.messagelabs.com!1468345227!53342330!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: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4168 invoked from network); 12 Jul 2016 17:40:29 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 12 Jul 2016 17:40:29 -0000 X-IronPort-AV: E=Sophos;i="5.28,352,1464652800"; d="scan'208";a="372744702" From: Ian Jackson To: Date: Tue, 12 Jul 2016 18:40:20 +0100 Message-ID: <1468345223-6457-2-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1468345223-6457-1-git-send-email-ian.jackson@eu.citrix.com> References: <1468345223-6457-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 1/4] Osstest/PDU/eth008: print actual error on failure 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 Signed-off-by: Ian Jackson --- Osstest/PDU/eth008.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/PDU/eth008.pm b/Osstest/PDU/eth008.pm index fc5fa96..12f0bfb 100644 --- a/Osstest/PDU/eth008.pm +++ b/Osstest/PDU/eth008.pm @@ -58,7 +58,7 @@ sub pdu_power_state { my $resp = $ua->get("http://$mo->{PDU}/io.cgi?$op$mo->{Port}=0"); - die "failed" unless $resp->is_success; + die "failed ".($resp->status_line) unless $resp->is_success; logm($resp->decoded_content); }