From: Petri Latvala <petri.latvala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH 1/1] runner: Exit with a nonzero status if aborting
Date: Fri, 16 Nov 2018 16:32:52 +0200 [thread overview]
Message-ID: <20181116143252.3234-1-petri.latvala@intel.com> (raw)
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
next reply other threads:[~2018-11-16 14:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 14:32 Petri Latvala [this message]
2018-11-16 15:48 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/1] runner: Exit with a nonzero status if aborting 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181116143252.3234-1-petri.latvala@intel.com \
--to=petri.latvala@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox