linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] udev-test.pl: set non-zero exitcode if tests fail
Date: Tue, 16 Sep 2008 08:38:33 +0000	[thread overview]
Message-ID: <48CF7089.7020301@tuffmail.co.uk> (raw)

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);



             reply	other threads:[~2008-09-16  8:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-16  8:38 Alan Jenkins [this message]
2008-09-16 17:08 ` [PATCH] udev-test.pl: set non-zero exitcode if tests fail Kay Sievers
2008-09-16 17:10 ` Kay Sievers

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=48CF7089.7020301@tuffmail.co.uk \
    --to=alan-jenkins@tuffmail.co.uk \
    --cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).