- Jul 08, 2016
-
-
Sjoerd Simons authored
Our test should be using the session environment as setup by the system (in lava specifically by run-in-systemd). So remove the hardcoding of DISPLAY (deprecated on wayland targets anyway), XDG_RUNTIME_DIR (setup by the environment in all cases) and DBUS_SESSION_BUS_ADDRESS (should be inferred by XDG_RUNTIME_DIR by all supported dbus libraries) Reviewed-by:
Luis Araujo <luis.araujo@collabora.co.uk> Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3664
-
Sjoerd Simons authored
As soon as there is a dbus user session a session bus should be available. Only verify that this exists (failling if it doesn't) rather then trying to workaround things by autolaunching a new bus. Reviewed-by:
Luis Araujo <luis.araujo@collabora.co.uk> Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3663
-
Sjoerd Simons authored
There is a session bus setup by systemd for the normal user, which is the one all tests should use. Use that by simply running the test as user user. Fixes: https://phabricator.apertis.org/T1906 Reviewed-by:
Luis Araujo <luis.araujo@collabora.co.uk> Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3662
-
Sjoerd Simons authored
Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
-
Sjoerd Simons authored
Configure gbp dch according to https://phabricator.apertis.org/w/packages/git_flow/ Signed-off-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
-
Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3651
-
NAME was fixed (in T133). Unfortunately, ID wasn't fixed (opens: T2117). Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3650
-
Otherwise it's just a pointless duplicate of system-id. Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3649
-
This should help to debug situations where a process has been started the wrong way, for example in T1984. Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3648
-
This makes it easier to run outside LAVA. No functional changes intended, even where the checks I'm copying are wrong (which will be fixed in subsequent commits). Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3647
-
- Jul 07, 2016
-
-
Simon McVittie authored
There's no point in providing both. 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/D3635
-
Simon McVittie authored
The more files we use from the $srcdir, the more likely it is that test fixes can be deployed to LAVA without waiting for a package rebuild. 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/D3634
-
Simon McVittie authored
This makes it easier to use uninstalled with make -C apparmor/libreoffice apparmor/libreoffice/libreoffice normal 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/D3633
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Simon McVittie authored
Tests that suppress debug output are user-hostile, and we should stop doing that. 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/D3636
-
Simon McVittie authored
This means we don't have to worry about whether the ${TESTDIR} is allowed by its AppArmor profile (it shouldn't really be). 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/D3632
-
Simon McVittie authored
Closes: https://phabricator.apertis.org/T2059 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/D3561
-
- Jul 05, 2016
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <simon.mcvittie@collabora.co.uk>
-
Philip Withnall authored
-
- Jun 30, 2016
-
-
Philip Withnall authored
This should hopefully catch failures like T2040, where the launcher crashed on boot. It checks for ANOM_ABEND lines in the audit log. Signed-off-by:
Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3540
-
- Jun 24, 2016
-
-
Simon McVittie authored
This avoids mistakes. 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/D3490
-
Simon McVittie authored
This was installed but not packaged. 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/D3489
-
Simon McVittie authored
This lets us run it from /usr/lib/apertis-tests/tumbler if desired. 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/D3488
-
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
-
Simon McVittie authored
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/D3480
-
Simon McVittie authored
This typically makes logs from automated tests more useful. 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/D3479
-
Simon McVittie authored
Debian Policy §10.4 says "Every script should use set -e or check the exit status of every command", which is just generally good advice. 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/D3478
-
Simon McVittie authored
We need the compiled LD_PRELOAD hack from the installed tree, but the rest can come from the source, allowing for quicker test/fix cycles. 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/D3477
-
Simon McVittie authored
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/D3476
-
Simon McVittie authored
If we have apertis-tests checked out in ~/apertis-tests or something, it's nice to be able to run the test uninstalled. 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/D3475
-
- 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
-
Luis Araujo authored
As this test is not valid anymore for Wayland images, just move it to be executed in SDK images. Reviewed-by:
Héctor Orón Martínez <hector.oron@collabora.co.uk> Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3377
-
- Apr 13, 2016
-
-
Luis Araujo authored
The bundle_stream variable will allow to easily set the bundle stream from the profile file for the different job templates. This commit also sets the value of such a variable to the new stream: /public/personal/apertis-validator/ Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2684
-
- Apr 08, 2016
-
-
Héctor Orón Martínez authored
Reviewed-by:
Luis Araujo <luis.araujo@collabora.co.uk> Signed-off-by:
Héctor Orón Martínez <hector.oron@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2625
-
- Mar 18, 2016
-
-
Philip Withnall authored
When raising an exception, it’s generally a good idea to actually include the exception value — otherwise Python will re-raise the ‘last exception which was active in the current scope’, which is not so useful, especially when you want to print that exception. Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by:
Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D1296
-
Philip Withnall authored
This introduces no behavioural changes. Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by:
Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2310
-
- Mar 17, 2016
-
-
Philip Withnall authored
Signed-off-by:
Philip Withnall <philip.withnall@collabora.co.uk>
-
Philip Withnall authored
The regexp is not bound to either end of the process name, so despite the fact that the test script changed its effective process name to ‘ofonod_’, the regexp ‘ofonod’ still matches that, and hence the script was killing itself, which was causing the systemd unit it was running as to fail, and hence the overall test to fail. Tighten the pkill regexp to match at the end of the process name to avoid this. Bug-Apertis: https://bugs.apertis.org/show_bug.cgi?id=681 Reviewed-by:
Simon McVittie <simon.mcvittie@collabora.co.uk> Signed-off-by:
Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D2284
-