diff options
author | Dan Nicholson <dbn@endlessos.org> | 2023-04-05 16:26:10 -0600 |
---|---|---|
committer | Dan Nicholson <dbn@endlessos.org> | 2023-04-12 21:42:33 -0600 |
commit | 3ec7b5db18cc6249048e46049be537ed135451b3 (patch) | |
tree | 18288307c94dbcfc1f2a3762009947fa0f03f73e | |
parent | c9271423b1c780ccb9ff47685d22d744968d9d19 (diff) | |
download | ostree-3ec7b5db18cc6249048e46049be537ed135451b3.tar.gz |
tests: Ensure real GIO backends aren't used
Set a few environment variables during tests to ensure fake GIO backends
are used. This is particularly important with the soup fetcher backend
as it can cause strange test errors in containerized test environments.
Upstream soup has been setting these 3 environment variables for their
tests since 2015.
-rw-r--r-- | Makefile-tests.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile-tests.am b/Makefile-tests.am index a30b86dd..429dafb9 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -36,6 +36,9 @@ AM_TESTS_ENVIRONMENT += OT_TESTS_DEBUG=1 \ PATH=$$(cd $(top_builddir)/tests && pwd):$${PATH} \ OSTREE_FEATURES="$(OSTREE_FEATURES)" \ PYTHONUNBUFFERED=1 \ + GSETTINGS_BACKEND=memory \ + GIO_USE_PROXY_RESOLVER=dummy \ + GIO_USE_VFS=local \ $(NULL) if BUILDOPT_ASAN AM_TESTS_ENVIRONMENT += OT_SKIP_READDIR_RAND=1 G_SLICE=always-malloc |