diff options
Diffstat (limited to 'runner/executor.c')
-rw-r--r-- | runner/executor.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c index 54c530b7..3f1eb010 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -1153,6 +1153,8 @@ bool initialize_execute_state(struct execute_state *state, init_time_left(state, settings); + state->dry = settings->dry_run; + return true; } @@ -1204,6 +1206,11 @@ bool execute(struct execute_state *state, double time_spent = 0.0; bool status = true; + if (state->dry) { + printf("Dry run, not executing. Invoke igt_resume if you want to execute.\n"); + return false; + } + if ((resdirfd = open(settings->results_path, O_DIRECTORY | O_RDONLY)) < 0) { /* Initialize state should have done this */ fprintf(stderr, "Error: Failure opening results path %s\n", |