Fix screenshot test and user session 02/27202/1 12.93.0 marlin/12.93.0 marlin_12.93.0
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 15 Feb 2022 16:54:16 +0000 (17:54 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 15 Feb 2022 21:03:19 +0000 (22:03 +0100)
The user session has its own daemon that needs to be reloaded separately.
Thus execute a separate reload call.

Bug-AGL: SPEC-4165

Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: Ie58423dfb29002660eea69462623d3f37614079f

common/scripts/agl-screenshot-test.sh

index 84e4d85..cdd536a 100755 (executable)
@@ -30,7 +30,8 @@ sed -i '/^\[core\]/a hide-cursor=true' /etc/xdg/weston/weston.ini
 # enable red/green/blue test screen
 echo 'HOMESCREEN_DEMO_CI=1' > /etc/default/homescreen
 sync
-systemctl daemon-reload
+systemctl daemon-reload || true
+su - agl-driver -c 'export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus" ; systemctl --user daemon-reload' || true
 sleep 2
 
 # create initial journal cursor file