* [PATCH] udev-test.pl: set non-zero exitcode if tests fail
@ 2008-09-16 8:38 Alan Jenkins
2008-09-16 17:08 ` Kay Sievers
2008-09-16 17:10 ` Kay Sievers
0 siblings, 2 replies; 3+ messages in thread
From: Alan Jenkins @ 2008-09-16 8:38 UTC (permalink / raw)
To: linux-hotplug
This will allow for automated testing e.g. git-bisect run:
git bisect run sudo sh -c "cd test; ./udev-test.pl"
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
diff --git a/test/udev-test.pl b/test/udev-test.pl
index a83b156..27ff2a7 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1896,3 +1896,7 @@ system("rm -rf $udev_root");
unlink($udev_rules);
unlink($udev_conf);
+if ($error > 0) {
+ exit(1);
+}
+exit(0);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] udev-test.pl: set non-zero exitcode if tests fail
2008-09-16 8:38 [PATCH] udev-test.pl: set non-zero exitcode if tests fail Alan Jenkins
@ 2008-09-16 17:08 ` Kay Sievers
2008-09-16 17:10 ` Kay Sievers
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2008-09-16 17:08 UTC (permalink / raw)
To: linux-hotplug
On Tue, Sep 16, 2008 at 01:38, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
> This will allow for automated testing e.g. git-bisect run:
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] udev-test.pl: set non-zero exitcode if tests fail
2008-09-16 8:38 [PATCH] udev-test.pl: set non-zero exitcode if tests fail Alan Jenkins
2008-09-16 17:08 ` Kay Sievers
@ 2008-09-16 17:10 ` Kay Sievers
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2008-09-16 17:10 UTC (permalink / raw)
To: linux-hotplug
On Tue, Sep 16, 2008 at 01:38, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
> This will allow for automated testing e.g. git-bisect run:
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-16 17:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 8:38 [PATCH] udev-test.pl: set non-zero exitcode if tests fail Alan Jenkins
2008-09-16 17:08 ` Kay Sievers
2008-09-16 17:10 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).