chiark / gitweb /
udev-test.pl: set non-zero exitcode if tests fail
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Tue, 16 Sep 2008 17:03:42 +0000 (10:03 -0700)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 16 Sep 2008 17:03:42 +0000 (10:03 -0700)
test/udev-test.pl

index a83b156..27ff2a7 100755 (executable)
@@ -1896,3 +1896,7 @@ system("rm -rf $udev_root");
 unlink($udev_rules);
 unlink($udev_conf);
 
 unlink($udev_rules);
 unlink($udev_conf);
 
+if ($error > 0) {
+    exit(1);
+}
+exit(0);