Signed-off-by: Imre Deak <imre.deak@intel.com>
break;
case 'h':
print_usage(command_str, help_str, false);
- ret = -2;
+ ret = -1;
goto out;
case '?':
if (opterr) {
print_usage(command_str, help_str, true);
- ret = -1;
+ ret = -2;
goto out;
}
/*
ret = igt_subtest_init_parse_opts(argc, argv, NULL, NULL, NULL, NULL);
if (ret < 0)
/* exit with no error for -h/--help */
- exit(ret == -2 ? 0 : ret);
+ exit(ret == -1 ? 0 : ret);
/* reset opt parsing */
optind = 1;
igt_fixture {
drm_fd = drm_open_any();
- do_or_die(igt_set_vt_graphics_mode());
+ if (!dry_run)
+ do_or_die(igt_set_vt_graphics_mode());
drm_resources = drmModeGetResources(drm_fd);
assert(drm_resources);