public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH 1/1] runner: Exit with a nonzero status if aborting
@ 2018-11-16 14:32 Petri Latvala
  2018-11-16 15:48 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/1] " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Petri Latvala @ 2018-11-16 14:32 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 runner/executor.c | 3 +++
 runner/runner.c   | 7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/runner/executor.c b/runner/executor.c
index 089e6312..2038c3fd 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1240,6 +1240,8 @@ bool execute(struct execute_state *state,
 			free(reason);
 			free(nexttest);
 
+			status = false;
+
 			goto end;
 		}
 	}
@@ -1280,6 +1282,7 @@ bool execute(struct execute_state *state,
 			free(prev);
 			free(next);
 			free(reason);
+			status = false;
 			break;
 		}
 
diff --git a/runner/runner.c b/runner/runner.c
index b685786a..013af551 100644
--- a/runner/runner.c
+++ b/runner/runner.c
@@ -11,6 +11,7 @@ int main(int argc, char **argv)
 	struct settings settings;
 	struct job_list job_list;
 	struct execute_state state;
+	int exitcode = 0;
 
 	init_settings(&settings);
 	init_job_list(&job_list);
@@ -28,13 +29,13 @@ int main(int argc, char **argv)
 	}
 
 	if (!execute(&state, &settings, &job_list)) {
-		return 1;
+		exitcode = 1;
 	}
 
 	if (!generate_results_path(settings.results_path)) {
-		return 1;
+		exitcode = 1;
 	}
 
 	printf("Done.\n");
-	return 0;
+	return exitcode;
 }
-- 
2.11.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-20 11:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-16 14:32 [igt-dev] [PATCH 1/1] runner: Exit with a nonzero status if aborting Petri Latvala
2018-11-16 15:48 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/1] " Patchwork
2018-11-19  9:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-11-19 13:42 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2018-11-19 16:43 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-11-20 11:04 ` [igt-dev] [PATCH 1/1] " Arkadiusz Hiler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox