mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
tests/qtest: drop DBUS_VMSTATE_TEST_TMPDIR
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user