test-execute: provide custom failure message
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Mar 2019 10:38:55 +0000 (11:38 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Tue, 26 May 2020 09:12:28 +0000 (11:12 +0200)
commitad8f0b480799aa7e312dacbcb0c01a3a9e6aa6db
tree1bfc34cf59b70f5ccb3659b50c7d2fdc510bfbc0
parent9beae637a919326ddc072c4dd53cb66e80273c8f
test-execute: provide custom failure message

test_exec_ambientcapabilities: exec-ambientcapabilities-nobody.service: exit status 0, expected 1

Sometimes we get just the last line, for example from the failure summary,
so make it as useful as possible.

(cherry picked from commit 6aed6a11577b108b9a39f26aeae5e45d98f20c90)

Related: #1737283
src/test/test-execute.c