- Jul 21, 2016
-
-
Simon McVittie authored
The Tracker services are started on-demand, while Xorg might not be installed. Also continue testing if one of these assertions fails: just log it as "not OK". Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3771
-
Simon McVittie authored
We're effectively asserting that all these processes are running, so we should look at whether they, in fact, *are* running, and if not, why not. Reviewed-by:
Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3639
-
Simon McVittie authored
If we fail to read the AppArmor profile or other required information due to a time-of-check/time-of-use difference (the process exits) then that's fine. Otherwise, it's a problem and we should fail, although we might as well continue testing and get more complete results. Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3770
-
Simon McVittie authored
Reviewed-by:
Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3638
-
Simon McVittie authored
In practice, the regex should always match: AppArmor "confinement strings" appear to always contain a label and mode, except in the special case "unconfined". However, if this is untrue for whatever reason, we should log it as an error, not carry on blindly. Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3637
-
- Jun 24, 2016
-
-
Simon McVittie authored
This test is run from the source tree, so there's no guarantee that this query will return anything. Reviewed-by:
Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3487
-
- Jun 22, 2016
-
-
Simon McVittie authored
We use systemd-run to schedule the pactl process to be run under a vaguely realistic user-session. However, there's a chicken-and-egg problem here: systemd-run uses either D-Bus or a private socket in XDG_RUNTIME_DIR to communicate with systemd, and without setting some environment variables we can't know either of those. This is similar to the implementation of the same concept in common/run-test-in-systemd. Unfortunately, the AppArmor tests need to reinvent that bit, because they run as root (to be able to manipulate AppArmor, which is a highly privileged action). Bug-Apertis: https://phabricator.apertis.org/T1859 Reviewed-by:
Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3449
-
Simon McVittie authored
The list of profiles and processes isn't all that long. If we're going to make assertions about this information, we should probably show it first. Reviewed-by:
Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3448
-
Simon McVittie authored
We were running commands like "pactl stat" and then ignoring their nonzero exit status. I've included support for ignoring failures, but in fact we never actually run anything in this test that can legitimately fail, so it's unused. Reviewed-by:
Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3447
-
- Mar 03, 2016
-
-
Reviewed-by:
Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2117
-