]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/qtest: drop DBUS_VMSTATE_TEST_TMPDIR
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 16 Mar 2026 20:33:11 +0000 (00:33 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 9 May 2026 14:54:15 +0000 (18:54 +0400)
It can rely on the location of the temporary configuration instead, so
we don't have to set that environment variable on every test.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
tests/dbus-daemon.sh
tests/qtest/dbus-vmstate-test.c

index 474e250154854ee31139cb2870810a744a792b88..c4a50c7377447151a3008e517fa4ba4b9663bb07 100755 (executable)
@@ -26,7 +26,7 @@ write_config()
     cat > "$CONF" <<EOF
 <busconfig>
   <type>session</type>
-  <listen>unix:tmpdir=$DBUS_VMSTATE_TEST_TMPDIR</listen>
+  <listen>unix:tmpdir=$(dirname "$CONF")</listen>
 
   <policy context="default">
      <!-- Holes must be punched in service configuration files for
index 15c35e7c0fab68b3327db13775ac1265ca2481c5..339b731ceb531e4dc89258ad022a67f5868ba16a 100644 (file)
@@ -395,8 +395,6 @@ main(int argc, char **argv)
         exit(1);
     }
 
-    g_setenv("DBUS_VMSTATE_TEST_TMPDIR", workdir, true);
-
     migration_test_add("/dbus-vmstate/without-list",
                        test_dbus_vmstate_without_list);
     migration_test_add("/dbus-vmstate/with-list",