summaryrefslogtreecommitdiff
path: root/runner/runner_tests.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/runner_tests.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/runner_tests.c')
-rw-r--r--runner/runner_tests.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/runner/runner_tests.c b/runner/runner_tests.c
index 0965612a..e46568ac 100644
--- a/runner/runner_tests.c
+++ b/runner/runner_tests.c
@@ -773,8 +773,9 @@ igt_main
"Dry run initialization didn't create the results directory.\n");
/* Execute from just initialize_execute_state should fail */
- igt_assert(!execute(&state, &settings, &list));
- igt_assert(openat(dirfd, "0", O_DIRECTORY | O_RDONLY) < 0);
+ igt_assert(execute(&state, &settings, &list));
+ igt_assert_f(openat(dirfd, "0", O_DIRECTORY | O_RDONLY) < 0,
+ "Dry run executed when it should not have.\n");
igt_assert_f((fd = openat(dirfd, "metadata.txt", O_RDONLY)) >= 0,
"Dry run initialization didn't serialize settings.\n");
close(fd);