tests: run 533-randr15.t at the very end
The test runs `xrandr setmonitor`, which will otherwise affect any test scheduled after 533-randr15.t, causing flakyness in t/217-NET_CURRENT_DESKTOP.t for example.
This commit is contained in:
parent
6dc164a652
commit
6203c6cb39
|
@ -177,11 +177,18 @@ my $timingsjson = slurp('.last_run_timings.json') if -e '.last_run_timings.json'
|
||||||
map { [$_, $timings{$_} // 999] } @testfiles;
|
map { [$_, $timings{$_} // 999] } @testfiles;
|
||||||
|
|
||||||
# Run 000-load-deps.t first to bail out early when dependencies are missing.
|
# Run 000-load-deps.t first to bail out early when dependencies are missing.
|
||||||
my $loadtest = "t/000-load-deps.t";
|
my ($loadtest) = grep { $_ =~ m,t/000-load-deps.t$, } @testfiles;
|
||||||
if ((scalar grep { $_ eq $loadtest } @testfiles) > 0) {
|
if (defined($loadtest)) {
|
||||||
@testfiles = ($loadtest, grep { $_ ne $loadtest } @testfiles);
|
@testfiles = ($loadtest, grep { $_ ne $loadtest } @testfiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Run 533-randr15.t last because it destructively modifies the RandR
|
||||||
|
# configuration of the X session, interfering with any test started afterwards.
|
||||||
|
my ($randrtest) = grep { $_ =~ m,t/533-randr15.t$, } @testfiles;
|
||||||
|
if (defined($randrtest)) {
|
||||||
|
@testfiles = ((grep { $_ ne $randrtest } @testfiles), $randrtest);
|
||||||
|
}
|
||||||
|
|
||||||
printf("\nRough time estimate for this run: %.2f seconds\n\n", $timings{GLOBAL})
|
printf("\nRough time estimate for this run: %.2f seconds\n\n", $timings{GLOBAL})
|
||||||
if exists($timings{GLOBAL});
|
if exists($timings{GLOBAL});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue