mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-25 18:57:41 +00:00
lib: don't ignore unknown options in multi-tests
None of the current tests have additional options that might make use of any unknown options and igt_subtest_init_parse_opts is available that integrates additional option parsing. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
e2cef00896
commit
82b424a419
@ -459,18 +459,7 @@ enum igt_log_level igt_log_level = IGT_LOG_INFO;
|
|||||||
*/
|
*/
|
||||||
void igt_subtest_init(int argc, char **argv)
|
void igt_subtest_init(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int ret;
|
igt_subtest_init_parse_opts(argc, argv, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
/* supress getopt errors about unknown options */
|
|
||||||
opterr = 0;
|
|
||||||
|
|
||||||
ret = igt_subtest_init_parse_opts(argc, argv, NULL, NULL, NULL, NULL);
|
|
||||||
if (ret < 0)
|
|
||||||
/* exit with no error for -h/--help */
|
|
||||||
exit(ret == -1 ? 0 : ret);
|
|
||||||
|
|
||||||
/* reset opt parsing */
|
|
||||||
optind = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user