]> git.ipfire.org Git - thirdparty/systemd.git/commit
hwdb-test: properly print error output from systemd-hwdb update
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Nov 2016 03:41:52 +0000 (22:41 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Dec 2016 16:50:17 +0000 (11:50 -0500)
commit8ce2069263a5ed9237ca03179a760d3023e12fbe
tree38b73bd62dd327646dfe7820e2f38daf8baec913
parentdc17ee3d6eb1c642d3518e23c7a1cdabf7225d98
hwdb-test: properly print error output from systemd-hwdb update

Because -e was set, we'd exit immediately when systemd-hwdb failed and the
captured error output was never printed. We want to test two things:
that 0 is returned, and that nothing is printed to stderr (to catch
syntax errors in the hwdb).

v2: stop capturing stderr to a variable
v3: capture stderr to a variable and test both error types separately
test/hwdb-test.sh