]> git.sur5r.net Git - i3/i3/commitdiff
tests: modify $PATH so that it prefers the compiled versions of everything in ../
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 20 Oct 2011 18:02:08 +0000 (19:02 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 20 Oct 2011 18:02:08 +0000 (19:02 +0100)
testcases/lib/SocketActivation.pm

index ef182012d8f193e616c8d783bcff51fe1a0d3053..11a672e3067243c1608a24c235176e5be3812818 100644 (file)
@@ -54,6 +54,14 @@ sub activate_i3 {
         $ENV{LISTEN_PID} = $$;
         $ENV{LISTEN_FDS} = 1;
         $ENV{DISPLAY} = $args{display};
+        $ENV{PATH} = join(':',
+            '../i3-nagbar',
+            '../i3-msg',
+            '../i3-config-wizard',
+            '../i3bar',
+            '..',
+            $ENV{PATH}
+        );
         # Only pass file descriptors 0 (stdin), 1 (stdout), 2 (stderr) and
         # 3 (socket) to the child.
         $^F = 3;