From: Dan Nicholson Date: Fri, 13 May 2016 17:22:02 +0000 (-0700) Subject: tests: Ensure mutable deployments from libostreetest X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~407^2^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8b397301c4ed87caafac86c3aaee47ccb644849f;p=ostree.git tests: Ensure mutable deployments from libostreetest When creating sysroots with libostreetest, we don't get the benefit of the OSTREE_SYSROOT_DEBUG setting in libtest.sh. That means we'll get immutable deployments that can't be easily cleaned up. Ensure the environment variable is set before creating new sysroots. It would be nice to set the debug flags directly, but that's private API that isn't currently pulled into libostreetest. Closes: #372 Approved by: cgwalters --- diff --git a/tests/libostreetest.c b/tests/libostreetest.c index 81f743e9..d0eb3e81 100644 --- a/tests/libostreetest.c +++ b/tests/libostreetest.c @@ -94,6 +94,9 @@ ot_test_setup_sysroot (GCancellable *cancellable, if (!ot_test_run_libtest ("setup_os_repository \"archive-z2\" \"syslinux\"", error)) goto out; + /* Make sure deployments are mutable */ + g_setenv ("OSTREE_SYSROOT_DEBUG", "mutable-deployments", TRUE); + ret_sysroot = ostree_sysroot_new (sysroot_path); ret = TRUE;