From: Dan Nicholson Date: Wed, 5 Apr 2023 22:26:10 +0000 (-0600) Subject: tests: Ensure real GIO backends aren't used X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~2^2~9^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3ec7b5db18cc6249048e46049be537ed135451b3;p=ostree.git 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. --- 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