Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/2] igt_runner: don't require root for dry_run
Date: Fri, 20 Oct 2023 12:20:32 +0200	[thread overview]
Message-ID: <20231020102146.121478-2-mauro.chehab@linux.intel.com> (raw)
In-Reply-To: <20231020102146.121478-1-mauro.chehab@linux.intel.com>

From: Mauro Carvalho Chehab <mchehab@kernel.org>

When --dry-run option is used, there's no need to require root,
as no tests will actually be executed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 runner/settings.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/runner/settings.c b/runner/settings.c
index 23aa82963344..788957948b4f 100644
--- a/runner/settings.c
+++ b/runner/settings.c
@@ -687,6 +687,7 @@ bool parse_options(int argc, char **argv,
 			break;
 		case OPT_DRY_RUN:
 			settings->dry_run = true;
+			settings->allow_non_root = true;
 			break;
 		case OPT_ALLOW_NON_ROOT:
 			settings->allow_non_root = true;
-- 
2.41.0

  reply	other threads:[~2023-10-20 10:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-20 10:20 [igt-dev] [PATCH i-g-t 0/2] Improve IGT runner dry-run logic Mauro Carvalho Chehab
2023-10-20 10:20 ` Mauro Carvalho Chehab [this message]
2023-10-20 11:27   ` [igt-dev] [PATCH i-g-t 1/2] igt_runner: don't require root for dry_run Kamil Konieczny
2023-10-20 10:20 ` [igt-dev] [PATCH i-g-t 2/2] igt_runner: output planned job_list tasks in dry-run mode Mauro Carvalho Chehab
2023-10-20 11:29   ` Kamil Konieczny
2023-10-20 13:18   ` Petri Latvala
2023-10-23 23:48 ` [igt-dev] ✓ Fi.CI.BAT: success for Improve IGT runner dry-run logic Patchwork
2023-10-24  0:46 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231020102146.121478-2-mauro.chehab@linux.intel.com \
    --to=mauro.chehab@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox