udev-test.pl: set non-zero exitcode if tests fail
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"
Signed-off-by Alan Jenkins <[email protected]>
test/udev-test.pl +4 -0
@@ -1896,3 +1896,7 @@ system("rm -rf $udev_root"); unlink($udev_rules); unlink($udev_conf); +if ($error > 0) { + exit(1); +} +exit(0);
Kay Sievers
AppliedQuoted 1 line · Alan Jenkins
This will allow for automated testing e.g. git-bisect run:
Applied.
Thanks,
Kay
Kay Sievers
AppliedQuoted 1 line · Alan Jenkins
This will allow for automated testing e.g. git-bisect run:
Applied.
Thanks,
Kay