From nobody Sat Apr 20 13:00:06 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1547388357225355.33760269100776; Sun, 13 Jan 2019 06:05:57 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB37A7F6A0; Sun, 13 Jan 2019 14:05:55 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B8D69179E3; Sun, 13 Jan 2019 14:05:55 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A439F3F7CD; Sun, 13 Jan 2019 14:05:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x0DE5s4I017256 for ; Sun, 13 Jan 2019 09:05:54 -0500 Received: by smtp.corp.redhat.com (Postfix) id AA9D9179E3; Sun, 13 Jan 2019 14:05:54 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A2476607C6 for ; Sun, 13 Jan 2019 14:05:52 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 46BA2C0587CA for ; Sun, 13 Jan 2019 14:05:51 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id b11so6439485wmj.1 for ; Sun, 13 Jan 2019 06:05:51 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6468:f312:29c6:8eb4:8a56:e1f2]) by smtp.gmail.com with ESMTPSA id g188sm25327100wmf.32.2019.01.13.06.05.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Jan 2019 06:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=sNf8OG1T0emJcbYRSX7x/Y8MnKnyUBswv9l5fAesK1A=; b=hp3m8jWqmiT9tkfQ04j7jNJsJnTpd4A8OPZsGvMxHbBr6L+zvRzAwfHwCk20n69JMB pevqg4LLcwGEZn5wqoJIhsJl5SVvvoioPGjCuSFWuB8Mz7SvimJY12azT1hIM7zpe6gC mM/dj58WoZsH9x7uCvFMn8n6y9bWeVWZAv3CSvRzDwPPAqWI7Zu1RCwERCDCC6cVFIso kh7eolyLqZ2DHORPvJF35FizwiEhXGLTBGChSIo/6Pg33llznc94388xM1ZQj5KvO4h5 01uwYitYzJiYiVHG/m+TTZOAiH8aVE37WHjP2LrDXuv2gUGfCqUnpq09W/8YEqlF+Hc8 CYng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=sNf8OG1T0emJcbYRSX7x/Y8MnKnyUBswv9l5fAesK1A=; b=DXuJ3owtxKjyx7y7FtxeqyMp31Y53jc1YsyL+V07W68/mCQ6Mb8o+MiGaBB6w1iwkb jH9MY3h/ozZxiDvhQfoe8lUllAVJ+4CU8nrt8J3TSTjNYWUBxOCiX+peza5Y22LEVdx9 wYtCdSfyY1G1isftOEOeVX73AISGsxRwXcGx2CSY4pMSQpaG+tgxlKe7WO1bIX52qMuC CP6xDfIVDr/IXQfhnq32gjJ7C4zRG8gVn4YACJ0OLqNbCdxpeerRAoHkl0FTWNFed2KA 0QaLJUorpJpRe9iQReeksFOczyh9IWP8G4Uq0VhsqeYHMO2uBEpEPRcwqu5yUhIhBZz/ 1h8A== X-Gm-Message-State: AJcUukerhfX5nxNnHra749h/3M0j+a+ZcS6ZxdDX7AZvlSHAR3pBlKKR RY4ejYh+vtRvPduryJ9GdD7s8C00Ba0= X-Google-Smtp-Source: ALg8bN4Ym7WMtQXr6U481uit892l2N8hPGYAAVqtcskM5uXAPJN+qpLZHWBu41flJ9s9o8jrheaujg== X-Received: by 2002:a1c:4681:: with SMTP id t123mr8586269wma.24.1547388349592; Sun, 13 Jan 2019 06:05:49 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Sun, 13 Jan 2019 15:05:48 +0100 Message-Id: <20190113140548.14442-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 13 Jan 2019 14:05:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 13 Jan 2019 14:05:51 +0000 (UTC) for IP:'209.85.128.68' DOMAIN:'mail-wm1-f68.google.com' HELO:'mail-wm1-f68.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.009 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.68 mail-wm1-f68.google.com 209.85.128.68 mail-wm1-f68.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] testing: print "OUTPUT END" after killing the test script X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sun, 13 Jan 2019 14:05:55 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Otherwise, there is a small window where OUTPUT END has already been printed but the script is still running, and the emails (which look for OUTPUT END) may lose some content. Signed-off-by: Paolo Bonzini --- patchew-cli | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/patchew-cli b/patchew-cli index 8012955..a66edb9 100755 --- a/patchew-cli +++ b/patchew-cli @@ -548,8 +548,6 @@ class TesterCommand(SubCommand): if rc !=3D None: break time.sleep(0.1) - logf.write("=3D=3D=3D OUTPUT END =3D=3D=3D\n") - logf.write("\n") if rc =3D=3D None: try: tp.terminate() @@ -560,8 +558,11 @@ class TesterCommand(SubCommand): tp.wait() except Exception as e: traceback.print_exc(file=3Dlogf) - logf.write("Abort: command timeout (>%d seconds)" % timeou= t) is_timeout =3D True + logf.write("=3D=3D=3D OUTPUT END =3D=3D=3D\n") + logf.write("\n") + if is_timeout: + logf.write("Abort: command timeout (>%d seconds)" % timeou= t) else: logf.write("Test command exited with code: %d" % rc) logf.flush() --=20 2.20.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel