test-systemctl-enable: use magic syntax to allow inverted tests
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 25 Mar 2022 14:56:16 +0000 (15:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:57 +0000 (16:17 +0200)
commitd6c51c485abe0026a5da654fca5d6c1457c4587d
tree90fbf6f8cbe2826dfaba32ea63c4353d0c57bc9c
parent3fc53351dc8f37355f5a4ee8f922d3e13a5182c2
test-systemctl-enable: use magic syntax to allow inverted tests

Inspired by 7910ec3bcde2ee0086b3e49f8aaa2a9f13f58d97.
'! true' passes, because it's a conditional expression.
But '( ! true )' fails, because '( … )' creates a subshell, i.e. a separate
program, and '! true' becomes the return value of that program, and the whole
thing apparently is not a conditional expression for the outer shell.

This is shorter, so let's just do this.
test/test-systemctl-enable.sh