From owner-freebsd-testing@freebsd.org Wed May 1 15:14:56 2019 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A377B15995E2 for ; Wed, 1 May 2019 15:14:56 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F1A081BEC for ; Wed, 1 May 2019 15:14:55 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pg1-x531.google.com with SMTP id f6so8417948pgs.8 for ; Wed, 01 May 2019 08:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Q8b1OqEnF2uUnGa383f9C9I1RCVAJrnaSPfWQKADa9I=; b=pMtZT2h2QNzVMcepa+hTlszmIquC9PO8/WlcbwaaH07RvJ2FnNMJTJrUKT/xdvheXL iptAVzAd0x1SMm9mIwHLQ758CjMMBQ/sP22Fk7g6/72hh8XA15EYlrgv4i0jrcfRPfGX rrwrqsKPBTDqEhat5j8T+5HyOPx8AQU2jUixRE+2wsi1OapAxm5J9DWBtIsjlRZxseoR QyyNTie0Mat7lPT/7abEgJUtlNwU3bzogfJ7eL2XFu0cYLD3Gvd132X7siGoEpl9eAms RLyIS87dW7QF+mD32DGZO8lbC2OGKxws9Cyc/ZdoA9suMtNIxLmzqZOK8RJTzRhkcGGl P3/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Q8b1OqEnF2uUnGa383f9C9I1RCVAJrnaSPfWQKADa9I=; b=aaAtPUANLaFjkewELjsO8Zo2Th+Ra513D8BtGTtxhJd6awjRU3FcQsdFALEI9KqZ/9 m0HBIUhPDdzz9/4CeVt5FR1zuWQzt0JtwfvKwB3icX6Eyxrx36ADaJmRPiNX05Kvb43r GNP/4i+Y2Zb/SYv3FNpdro3C7NvrmRVYMLnas+uh5XmuMxlzExm6u5Blbr+ZlsfDHWNo QR46jx/+gROxMd+0pJOXlNDB9yHiFy2bbddZVCn/mwgo8hRcVuhE2hiJcqYdKBa+zq4o 53plfutroQmYQZV3OK3s01VaKQ3hriBmfoOw56AtYwGkBLlDERQpMQTntdK9YMqY8Bgt lRCQ== X-Gm-Message-State: APjAAAXbG/nqb0OYKSZMBIBCZ/spfyxoXi/FXUMQamAnMdpj/iztWD5q Ug9pPviczwwEF0NGaDy21IQguR0O X-Google-Smtp-Source: APXvYqwXREKPJpQEJjQmkFjb19MarBE2cL6kV/qfEFjX4wemdS0xX/ehFaBIQ3AgY20JwZMZ67ozHA== X-Received: by 2002:a63:66c1:: with SMTP id a184mr12509607pgc.412.1556723693611; Wed, 01 May 2019 08:14:53 -0700 (PDT) Received: from ?IPv6:2607:fb90:8239:4075:5597:dc44:2568:156a? ([2607:fb90:8239:4075:5597:dc44:2568:156a]) by smtp.gmail.com with ESMTPSA id f20sm81371350pff.176.2019.05.01.08.14.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 08:14:52 -0700 (PDT) Mime-Version: 1.0 (1.0) Subject: Re: Running Kyua within Jenkins script From: Enji Cooper X-Mailer: iPhone Mail (16E227) In-Reply-To: <1370244969.36126.1556722502941.JavaMail.zimbra@xinuos.com> Date: Wed, 1 May 2019 08:14:48 -0700 Cc: freebsd-testing Message-Id: <77328423-B1C8-469E-8081-EC567F1F2B9E@gmail.com> References: <1370244969.36126.1556722502941.JavaMail.zimbra@xinuos.com> To: Susan Stanziano X-Rspamd-Queue-Id: 9F1A081BEC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=pMtZT2h2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yaneurabeya@gmail.com designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=yaneurabeya@gmail.com X-Spamd-Result: default: False [-6.45 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-1.00)[-0.995,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-testing@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.94)[ip: (-9.23), ipnet: 2607:f8b0::/32(-3.17), asn: 15169(-2.24), country: US(-0.06)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 May 2019 15:14:57 -0000 > On May 1, 2019, at 07:55, Susan Stanziano wro= te: >=20 >=20 >=20 > Hi all,=20 >=20 >=20 >=20 >=20 > A question on running Kyua within a shell script on Jenkins.=20 >=20 >=20 >=20 >=20 > I=E2=80=99ve been automating test suites using Jenkins and added the=20 >=20 >=20 >=20 >=20 > =E2=80=9Ckyua test=E2=80=9D=20 >=20 >=20 >=20 >=20 > command to a shell script (default is /bin/sh) in Jenkins followed by=20 >=20 >=20 >=20 >=20 > the =E2=80=9Ckyua report=E2=80=9D command.=20 >=20 >=20 >=20 >=20 > For some reason, any commands after =E2=80=9Ckyua test=E2=80=9D do not get= executed.=20 >=20 >=20 >=20 >=20 > Separately, either command (test or report) runs correctly within my scrip= t on Jenkins.=20 >=20 >=20 >=20 >=20 > Is there something in =E2=80=9Ckyua test=E2=80=9D that after a run it kill= s further processes or is there something within Jenkins=20 >=20 > that would prevent subsequent commands from being executed after =E2=80=9C= kyua test=E2=80=9D completes?=20 >=20 >=20 >=20 >=20 > Or am I missing something simple here?=20 >=20 >=20 >=20 >=20 > Thanks for any suggestions,=20 Hi Susan, In addition to what Alan said about set -e maybe being an issue (add =E2= =80=9Cecho $-=E2=80=9C to your script to see what flags sh is being executed= with, e.g., =E2=80=9C-e=E2=80=9D), you should use =E2=80=9Ckyua report-html= =E2=80=9D to export the test data to Jenkins instead of having to parse the r= eport output. Some of the scripts which drive exporting the data to the FreeBSD Jenkin= s instance can be found here: https://github.com/freebsd/freebsd-ci/tree/mas= ter/scripts/test . It might not suit your needs out of the box, but you migh= t find some inspiration for writing your Jenkins code. Cheers, -Enji=