diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-16 15:59:54 +0100 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2022-03-21 18:34:59 +0200 |
commit | 4b88a9253443ecd910a5f4c7bfe624a5f29d35b9 (patch) | |
tree | efdfe7c20f075e1758043c6a823f045e0e87d5e1 /runner/settings.h | |
parent | 0fcd59ad25b2960c0b654f90dfe4dd9e7c7b874d (diff) |
runner: check if it has root permissions
Without root permissions, most IGT tests won't actually run, but they
would be displayed at the runner's output as if everything went fine.
In order to avoid that, check if one attempts to run IGT without root
permission. Such check can be disbled with a new command line option:
--allow-non-root
As runner_tests runs as non-root, most unit tests need to pass
--allow-non-root in order for them to not return an error.
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'runner/settings.h')
-rw-r--r-- | runner/settings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runner/settings.h b/runner/settings.h index 409391f9..bc61faeb 100644 --- a/runner/settings.h +++ b/runner/settings.h @@ -32,6 +32,7 @@ struct settings { char *test_list; char *name; bool dry_run; + bool allow_non_root; struct regex_list include_regexes; struct regex_list exclude_regexes; bool sync; |