tests: implement restart testing (actual option still missing)
This commit is contained in:
@ -92,6 +92,10 @@ sub activate_i3 {
|
||||
my $outdir = $args{outdir};
|
||||
my $test = $args{testname};
|
||||
|
||||
if ($args{restart}) {
|
||||
$i3cmd .= ' -L ' . abs_path('restart-state.golden');
|
||||
}
|
||||
|
||||
if ($args{valgrind}) {
|
||||
$i3cmd =
|
||||
qq|valgrind -v --log-file="$outdir/valgrind-for-$test.log" | .
|
||||
|
@ -101,8 +101,8 @@ sub worker_wait {
|
||||
$test->failure_output(\*STDERR);
|
||||
$test->todo_output(\*STDOUT);
|
||||
|
||||
@ENV{qw(DISPLAY TESTNAME OUTDIR VALGRIND STRACE COVERAGE)}
|
||||
= ($self->{display}, basename($file), $outdir, 0, 0, 0);
|
||||
@ENV{qw(DISPLAY TESTNAME OUTDIR VALGRIND STRACE COVERAGE RESTART)}
|
||||
= ($self->{display}, basename($file), $outdir, 0, 0, 0, 0);
|
||||
|
||||
package main;
|
||||
local $@;
|
||||
|
@ -505,6 +505,7 @@ sub launch_with_config {
|
||||
testname => $ENV{TESTNAME},
|
||||
valgrind => $ENV{VALGRIND},
|
||||
strace => $ENV{STRACE},
|
||||
restart => $ENV{RESTART},
|
||||
cv => $cv,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user