From nobody Thu Mar 28 13:33:26 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 154353417808014.059953820319492; Thu, 29 Nov 2018 15:29:38 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2A2B57E9CB; Thu, 29 Nov 2018 23:29:36 +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 1A30A105B1E0; Thu, 29 Nov 2018 23:29:36 +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 0DD113F954; Thu, 29 Nov 2018 23:29:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wATNTYjd029466 for ; Thu, 29 Nov 2018 18:29:34 -0500 Received: by smtp.corp.redhat.com (Postfix) id 961F96013E; Thu, 29 Nov 2018 23:29:34 +0000 (UTC) Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8DD0C601B9 for ; Thu, 29 Nov 2018 23:29:32 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) (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 B9E043154849 for ; Thu, 29 Nov 2018 23:29:31 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id r10so3549267wrs.10 for ; Thu, 29 Nov 2018 15:29:31 -0800 (PST) Received: from donizetti.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id 14sm6317526wmv.36.2018.11.29.15.29.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Nov 2018 15:29:28 -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=lMP/CYkm29Frxq7kcYwex+2buu4zjuAV79rdoRmfWPQ=; b=lXmTlCusLyTtBN4RLPdBrB+VwWmPXnMqDj9RjuDbTK8ZLSq8yR74Xhg4SIytFue/lr JI5x+NIBI4TFcesRaFL5A9+Xr30NJN1UG9hD+w3lsO6suaWMdwTLUU8SBXyKKLGJyI8N 1ipjlhnRJLQtcUi9z9m+pYWTVMwi9OWGwYvkRzPpJ/zHxCok3xu3uyOmlKmbVgTkZBjp VJG6Ht5d5cJG2uD2TLJOr1y1nyWzzI3J9k2PiZCC++P2u4hej6oZcsz/P4MDVHjd1CfU j9tZjDGKrbaxcy1jpXBu0g9C0cpvNuSqHOl/EdwGTvyqkeIRl0C39+yZv+uzSxGgPL3y lIDQ== 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=lMP/CYkm29Frxq7kcYwex+2buu4zjuAV79rdoRmfWPQ=; b=kBtxes6E+Yvxe9rqZ6O8O24SPjwStdZV5gCGuSAFjr5PNHMzKl59jaPHRqSlw7KMjd 5B01BeVgi5hiIu+u0+FJCC0qB5GIo16drYYafb+GKuti8xjqGyWHXRhzcqVGfqQE6GZR r9K6NpX6Ev2ahhOWgBB8bUPyBK8ome3CLnsobO/pK7bSk4bf7UchKIek8WHYqaeTTPeA q9tez+sfppOPL0/Zd34thk9rnsGgrHW+Tv3l51mugk3frTkD0VQbvy7BGias6H6BX1KM 7riw+EXw0XNT/74vP7IigikD2CMbl8UHx+WDdo5U6n5cOGwbGggPc2OoKNhwFL3UD3Zk D8Uw== X-Gm-Message-State: AA+aEWaTkSc57YCWGERWCIs5tNQN0A868AwxFVw1rBLAPHVC4ncLTUAG PKvhqsTITQfbzWwBIOBBULF2YC6s X-Google-Smtp-Source: AFSGD/UkMg5qertEpuxxfkryvG4JqZK8bFybrkaoja1JNkgDxKy0uxWR17TvGxHGjo/u257sX1UBvw== X-Received: by 2002:adf:ba8e:: with SMTP id p14mr2906508wrg.230.1543534170059; Thu, 29 Nov 2018 15:29:30 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 30 Nov 2018 00:29:27 +0100 Message-Id: <20181129232927.10783-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.41]); Thu, 29 Nov 2018 23:29:31 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 29 Nov 2018 23:29:31 +0000 (UTC) for IP:'209.85.221.67' DOMAIN:'mail-wr1-f67.google.com' HELO:'mail-wr1-f67.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.238 (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.221.67 mail-wr1-f67.google.com 209.85.221.67 mail-wr1-f67.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.41 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] patchew-cli: run test scripts in a TTY 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 29 Nov 2018 23:29:36 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This allows tests to show progress, colorize output, etc. Signed-off-by: Paolo Bonzini Reviewed-by: Caio Carrara --- patchew-cli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patchew-cli b/patchew-cli index b5d6ecb..02cbf36 100755 --- a/patchew-cli +++ b/patchew-cli @@ -529,8 +529,8 @@ class TesterCommand(SubCommand): logf.write("=3D=3D=3D OUTPUT BEGIN =3D=3D=3D\n") logf.flush() start_time =3D time.time() - tp =3D subprocess.Popen([test_script], cwd=3Dclone, - stdout=3Dlogf, stderr=3Dlogf) + tp =3D subprocess.Popen(["/usr/bin/script", "-qefc", test_scri= pt, "/dev/null"], + cwd=3Dclone, stdout=3Dlogf, stderr=3Dlog= f) rc =3D None timeout =3D r["test"]["timeout"] while timeout <=3D 0 or time.time() - start_time < timeout: --=20 2.19.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel