mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 06:07:56 +00:00
tests: Tell "as-installed" tests where they can find triggers
Since commit d10e1148 "Add initial support for preinstalling flatpaks", the test suite sets FLATPAK_DATA_DIR to a temporary directory, both while running uninstalled and as-installed. While running uninstalled we already set FLATPAK_TRIGGERSDIR to the trigger scripts in the source tree, but when running "as-installed", we need to run the triggers that the OS installs as part of the flatpak package (or equivalent). Not having this caused autopkgtests (automated as-installed tests) in Debian to regress with 1.17.x. Fixes: d10e1148 "Add initial support for preinstalling flatpaks" Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
56dfd306d6
commit
c324778b07
@ -1,4 +1,7 @@
|
||||
# Copyright 2024 Collabora Ltd.
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
FLATPAK_TRIGGERSDIR='@FLATPAK_TRIGGERSDIR@'
|
||||
FUSERMOUNT='@FUSERMOUNT@'
|
||||
|
||||
export FLATPAK_TRIGGERSDIR
|
||||
|
||||
@ -46,6 +46,7 @@ if get_option('installed_tests')
|
||||
output : 'installed-tests.sh',
|
||||
configuration : {
|
||||
'FUSERMOUNT' : fusermount,
|
||||
'FLATPAK_TRIGGERSDIR' : get_option('prefix') / get_option('datadir') / 'flatpak' / 'triggers',
|
||||
},
|
||||
install_dir : installed_testdir,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user