From 389fdcf79ff4d0b5cc403f3ccda14ae0d0af0c16 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 7 Nov 2011 20:52:14 +0000 Subject: [PATCH] complete-run: pass outdir (not only logpath) to activate_i3() --- testcases/complete-run.pl | 3 ++- testcases/lib/i3test.pm | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index e7651022..939ee636 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -141,6 +141,7 @@ sub take_job { unix_socket_path => "/tmp/nested-$display-activation", display => $display, configfile => $tmpfile, + outdir => $outdir, logpath => $logpath, cv => $activate_cv ); @@ -189,7 +190,7 @@ sub take_job { my $output; open(my $spool, '>', \$output); my $parser = TAP::Parser->new({ - exec => [ 'sh', '-c', qq|DISPLAY=$display LOGPATH="$logpath" /usr/bin/perl -Ilib $test| ], + exec => [ 'sh', '-c', qq|DISPLAY=$display LOGPATH="$logpath" OUTDIR="$outdir" /usr/bin/perl -Ilib $test| ], spool => $spool, merge => 1, }); diff --git a/testcases/lib/i3test.pm b/testcases/lib/i3test.pm index 39fd7a94..563837df 100644 --- a/testcases/lib/i3test.pm +++ b/testcases/lib/i3test.pm @@ -433,6 +433,7 @@ sub launch_with_config { unix_socket_path => "$tmp_socket_path-activation", display => $ENV{DISPLAY}, configfile => $tmpfile, + outdir => $ENV{OUTDIR}, logpath => $ENV{LOGPATH}, cv => $cv, );