From nobody Fri Oct 13 19:31:37 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S6c7s4JdLz4wgMl; Fri, 13 Oct 2023 19:31:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S6c7s3Zg5z4Xrs; Fri, 13 Oct 2023 19:31:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697225497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhSOwpnZuSLyYU/2m0CvkyQP2kM8/Zx5YovQe4BN9No=; b=lSnKWevzaZtwEkG/fGPZLVKUmGjl9HHkpwe55m6eG9RGcSwcPJhLk+MDBOsHKGBr3Yr1DZ rgB32J3ZGBcCxfwP7XNq7dsa9KthU1h9cPvHdDjKZEc4fePKHXnvitoe90JnP1K3MWbL09 S5SWZU9p7RHmp9915HXxEsZ21ES0VdZVLNfbMqWV8qbfBgUe5gCbQMyBYR6St8Y0l0zvjz B/UlOI7JON7l8NWV+45RGzldOEgLf8NekJg/Y25zkd8kub01PKPVnEWHYdv3nDYrSvUwRO tYWbfOn1ema+3/Rcd5jEi7U7ittB/GMw00CoGBO26fuf+24ddPrvz1M5FLeMhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697225497; a=rsa-sha256; cv=none; b=GSFLfP2T/5LyJWKlDb0DLGAOJ4bBWRvg6Ps+KatPd9xFmXb1antVV1MaQoPwHA23kumr2R umcjhFqfMMJcGI3cGg30yo8EMuN/LewD9KkM7vPeScDHD/XoysNG6q6HVXkEc7GHibIi7n iGTly/nS+qaN8hOZo/o7/ezfK3DG3Ng77785/sq1QCvlH89cMU5DESPE5bZ/lSj0bOEgxn CZg76NpMNHeEZrDyFmf3VOu9VjhIaMn/xUHrnFKRnPg0s93g4PhTOBKds/3MXEkfF2alE2 1aZAv2AUrdDpEFlYdb0y8NpvQsqSJ0pBfDus9kM/m7vVB9RIaXWk7uRHVLRrVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697225497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhSOwpnZuSLyYU/2m0CvkyQP2kM8/Zx5YovQe4BN9No=; b=kpi0FMx/cd915ufPSJWWEEeDVhDy7IcH++UOX71B1O1FIXZ5GiAYC1ulzTPcYA6f2vpc5B bUj5lAAEg3LXlxMtvbY2DBSLe06iJ3c+MW4RC99B8ihbjp3aCDrHhxvDEpykNbvtIezSeQ Sn80W3nOan7S+GYEkzaC2HDs3lzlrbDZPeu5FmLqr/+5G/uK/qM7IMcwsr6fUbaItXWM7u XQqOH7IpMem9KaMRglwsszbXGw5ERI4W2+7BkiOTpLdP9ldRU5BjDDwTokOKSjGR/PI5W+ 9NwPHem9vsT+YRdHznMf63maq5gNyNjRYc6OwTx/e9BeOaZUquD3aIKWhLAgEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S6c7s2d3Lz1178; Fri, 13 Oct 2023 19:31:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39DJVb6T097859; Fri, 13 Oct 2023 19:31:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39DJVbwS097856; Fri, 13 Oct 2023 19:31:37 GMT (envelope-from git) Date: Fri, 13 Oct 2023 19:31:37 GMT Message-Id: <202310131931.39DJVbwS097856@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 7964a28ccfc9 - main - atf_python: Actually implement verbosity for run_cmd List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 commit 7964a28ccfc9f1d353fa851f5ecd83d17ab75b09 Author: Jose Luis Duran AuthorDate: 2023-10-12 14:51:45 +0000 Commit: Mark Johnston CommitDate: 2023-10-13 19:31:30 +0000 atf_python: Actually implement verbosity for run_cmd Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/865 --- tests/atf_python/sys/net/vnet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py index c58ae28d5ca9..bfe7984b440b 100644 --- a/tests/atf_python/sys/net/vnet.py +++ b/tests/atf_python/sys/net/vnet.py @@ -19,7 +19,8 @@ from atf_python.utils import libc def run_cmd(cmd: str, verbose=True) -> str: - print("run: '{}'".format(cmd)) + if verbose: + print("run: '{}'".format(cmd)) return os.popen(cmd).read()