From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Tue, 16 Sep 2008 08:38:33 +0000 Subject: [PATCH] udev-test.pl: set non-zero exitcode if tests fail Message-Id: <48CF7089.7020301@tuffmail.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 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);