Skip to contentSkip to conversation

udev-test.pl: set non-zero exitcode if tests fail

PATCH Applied Alan Jenkins 2 participants 3 messages Sep 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev-test.pl: set non-zero exitcode if tests fail

This will allow for automated testing e.g. git-bisect run:

git bisect run sudo sh -c "cd test; ./udev-test.pl"

test/udev-test.pl +4 -0
index a83b156..27ff2a7 100755
@@ -1896,3 +1896,7 @@ system("rm -rf $udev_root");
 unlink($udev_rules);
 unlink($udev_conf);
 
+if ($error > 0) {
+    exit(1);
+}
+exit(0);
Applied
#1 lore raw
Quoted 1 line · Alan Jenkins

This will allow for automated testing e.g. git-bisect run:

Applied.

Thanks,
Kay