summaryrefslogtreecommitdiff
path: root/runner/executor.c
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2019-02-19 12:18:10 +0200
committerPetri Latvala <petri.latvala@intel.com>2019-02-21 12:20:49 +0200
commitebf2d10a95fff590542808ec14c7bce74ad11b37 (patch)
tree94412261f19abde6cc0fa923e038a4cdc4e69b1b /runner/executor.c
parent5aa3651ce2f5f562dad74f3e9d1ba47844e7a998 (diff)
runner: Exit with 0 on dry-run
v2: Adjust tests accordingly Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: Tomi Sarvela <tomi.p.sarvela@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'runner/executor.c')
-rw-r--r--runner/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runner/executor.c b/runner/executor.c
index 3f1eb010..d535c276 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1208,7 +1208,7 @@ bool execute(struct execute_state *state,
if (state->dry) {
printf("Dry run, not executing. Invoke igt_resume if you want to execute.\n");
- return false;
+ return true;
}
if ((resdirfd = open(settings->results_path, O_DIRECTORY | O_RDONLY)) < 0) {