[gnome-desktop-testing] runner: Exit with code 2 if any test failed
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop-testing] runner: Exit with code 2 if any test failed
- Date: Fri, 25 Oct 2013 14:45:09 +0000 (UTC)
commit aa95b24ae91c8be5e2e832fd0c460da06fb710fe
Author: Colin Walters <walters verbum org>
Date: Fri Oct 25 10:42:51 2013 -0400
runner: Exit with code 2 if any test failed
Suggested by Iain Lane for use in Ubuntu Jenkins runner.
src/gnome-desktop-testing-runner.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-desktop-testing-runner.c b/src/gnome-desktop-testing-runner.c
index fed0c8a..21b6c3f 100755
--- a/src/gnome-desktop-testing-runner.c
+++ b/src/gnome-desktop-testing-runner.c
@@ -742,5 +742,7 @@ main (int argc, char **argv)
g_clear_pointer (&app->tests, g_ptr_array_unref);
if (!ret)
return 1;
+ if (n_failed > 0)
+ return 2;
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]