complete-run.pl: Un-set I3SOCK (#6139)

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.

Broken after #5987
This commit is contained in:
Orestis Floros 2024-07-10 08:40:50 +02:00 committed by GitHub
parent 05feaecf8a
commit 45d8f98fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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 $?;