test-execute: simplify checks if grep output is empty
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Mar 2018 07:42:02 +0000 (08:42 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Mar 2018 14:57:56 +0000 (15:57 +0100)
commitc725631f4bebe9ead39c6371431e0b6be8eab2c1
tree369f0e41594eb52bc87d8a14c8c17ef842bf47ce
parentb1ffacb631d2209174353e35a7ff6acb35c389be
test-execute: simplify checks if grep output is empty

grep already indicates if it matched anything by return value.
Additional advantage is then that if the test fails, the unexpected
matching lines are visible in the log output.
test/test-execute/exec-capabilityboundingset-invert.service
test/test-execute/exec-privatenetwork-yes.service