mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Disable GUI for our batch tests if using QT5
Thanks to Enrico for this params
This commit is contained in:
parent
49603e91aa
commit
f5732bef83
@ -19,6 +19,7 @@ my $workdir = "$builddir/autotests/out-home";
|
|||||||
my $vsuffix = "@PROGRAM_SUFFIX@";
|
my $vsuffix = "@PROGRAM_SUFFIX@";
|
||||||
my $lyx_exe = "$builddir/bin/lyx$vsuffix";
|
my $lyx_exe = "$builddir/bin/lyx$vsuffix";
|
||||||
my $git_exe = "@LYX_GITVERSION@";
|
my $git_exe = "@LYX_GITVERSION@";
|
||||||
|
my $qt_version = "@LYX_USE_QT@";
|
||||||
|
|
||||||
my $lyxsource = "@LYX_ABS_TOP_SRCDIR@";
|
my $lyxsource = "@LYX_ABS_TOP_SRCDIR@";
|
||||||
my $data = "$lyxsource/development/batchtests";
|
my $data = "$lyxsource/development/batchtests";
|
||||||
@ -94,6 +95,9 @@ if (defined($Tests{$test}->{command_line})) {
|
|||||||
push(@command, @{$Tests{$test}->{command_line}});
|
push(@command, @{$Tests{$test}->{command_line}});
|
||||||
}
|
}
|
||||||
if (defined($Tests{$test}->{commands})) {
|
if (defined($Tests{$test}->{commands})) {
|
||||||
|
if ($qt_version eq "QT5") {
|
||||||
|
push(@command, "-platform", "offscreen");
|
||||||
|
}
|
||||||
push(@command, "-x", "command-sequence " . join(';', @{$Tests{$test}->{commands}}));
|
push(@command, "-x", "command-sequence " . join(';', @{$Tests{$test}->{commands}}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user