Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp820298imu; Tue, 11 Dec 2018 08:05:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/XOMfPOMuYlF2zZ+v9AUMnZUDMCt4YoTdeAR+aby6U48T7M6HJGSsPKHpWWCaffemBqUp2n X-Received: by 2002:a17:902:6f09:: with SMTP id w9mr16940660plk.309.1544544315658; Tue, 11 Dec 2018 08:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544544315; cv=none; d=google.com; s=arc-20160816; b=HusKgGeLhKRaVanzlPsXT8tTPepwvZ6vCSrznA3ei8XXTeRFzbvT5A+UbZMpACMAqs 4T7MrkKRk+XVCojV3m/fZkIbKAs6opUo5v51WUviHIHu2ErZr6RLqzCvuKZNqjTe5WPu cemrBhGvt0KvYDj/O9enEmQHEkBEJMStowCVVe3rp5dNzrOAhvq4c7z+wfx25Lid5zIU zVgOgZhSrph74rMwAgkC3Q2Uo3dNDbcsYv9kcsQowfsLVPP+JZR3urz2Qai6rz4jEnTO rbYa0k+5RlJVoaQ6PXYuL3x+7NhMY9rMVhXAVT1GpD0hlPp6HaRmDGzHCY9VXUIO0alJ FWCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0d1O0GJvQ6Dqf4DRrZCrxYPeOZhEstSiNHvkIo5yKDw=; b=yazN+wRFegPgLg+R9Ei/HEi0lUk5KJwlncgLfCsKuP4HqOFP6LNlaN6k71tdvOqWU+ qaf0crFTVLHZX6CWI6cr8ngAsDWeWPiBSZbt93V1jDcI2RCr6viMiNoRa3JpszWbbt6z 6i6Jp2f5B0IaebGaDO6QkoHpZzy5f+yi+54NglWWKGwIritHkQduSNCkZ/RT0ZXcdBxH 7ivi1/bxk+Q/TpdygRZ4YQaZ3xVxWuA/SUaiMTd+26r4d8tK7517lXQw1kaEXABIkKmA DdFTz66xI7jXuhNR5FJfVbR8m+e84mxkFOyH43/o1R6lY1GZyRYR+iKXuIStpBjq4xVP xrLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r+nkLEo9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h127si13681955pfe.204.2018.12.11.08.04.59; Tue, 11 Dec 2018 08:05:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r+nkLEo9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731015AbeLKQB4 (ORCPT + 99 others); Tue, 11 Dec 2018 11:01:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:46086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730748AbeLKP5K (ORCPT ); Tue, 11 Dec 2018 10:57:10 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D645E205C9; Tue, 11 Dec 2018 15:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543829; bh=udwFmnrLpJTNwrC9NMr7XKU9rBbrGoMF0fX5rgR800E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+nkLEo9fa3+IQvWxxzDNO06e3RMWGjGDwtE0oDFNBOPr+CbfAtM6I5esqi66llZn tzrd9Ti8YjKmJb2mpwH4NXAUxS3580VxhliOaHEglj7FOu520Ce3xvKSeXizEZkA95 Pf7cwMXjRI+qrPNjlhZCMNa6XRGalUyxlLiKAzew= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Bates , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 035/118] tc-testing: tdc.py: ignore errors when decoding stdout/stderr Date: Tue, 11 Dec 2018 16:40:54 +0100 Message-Id: <20181211151645.652891414@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151644.216668863@linuxfoundation.org> References: <20181211151644.216668863@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 5aaf6428526bcad98d6f51f2f679c919bb75d7e9 ] Prevent exceptions from being raised while decoding output from an executed command. There is no impact on tdc's execution and the verify command phase would fail the pattern match. Signed-off-by: Lucas Bates Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/tc-testing/tdc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py index 87a04a8a5945..9b3f414ff1e9 100755 --- a/tools/testing/selftests/tc-testing/tdc.py +++ b/tools/testing/selftests/tc-testing/tdc.py @@ -134,9 +134,9 @@ def exec_cmd(args, pm, stage, command): (rawout, serr) = proc.communicate() if proc.returncode != 0 and len(serr) > 0: - foutput = serr.decode("utf-8") + foutput = serr.decode("utf-8", errors="ignore") else: - foutput = rawout.decode("utf-8") + foutput = rawout.decode("utf-8", errors="ignore") proc.stdout.close() proc.stderr.close() -- 2.19.1