complete-run.pl: Un-set I3SOCK

This causes test breakage when the developer/tester is running the tests
in i3, as the actual active instance socket is used instead of the test
instance.

Besides breaking tests, this is quite dangerous as tests like 319-gaps.t
will replace the **actual** config of the user (i.e.
~/.config/i3/config) instead of the current test config.
This commit is contained in:
Orestis Floros 2024-07-08 17:59:13 +02:00
parent be840af45c
commit 871f306c01
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3

View File

@ -106,6 +106,8 @@ $ENV{PATH} = join(':',
'@abs_top_builddir@',
'@abs_top_srcdir@',
$ENV{PATH});
# Make sure we don't re-use the existing (developer's) i3 connection
delete $ENV{I3SOCK};
qx(Xephyr -help 2>&1);
die "Xephyr was not found in your path. Please install Xephyr (xserver-xephyr on Debian)." if $?;