From: Kornel Benko Date: Sat, 26 May 2018 11:30:30 +0000 (+0200) Subject: Disable GUI for our batch tests if using QT5 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3399 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f5732bef830ae7ae53445adf96d22be8f08774c3;p=features.git Disable GUI for our batch tests if using QT5 Thanks to Enrico for this params --- diff --git a/lib/scripts/lyx_batch.pl.in b/lib/scripts/lyx_batch.pl.in index 7bd50bef20..7508a13ed9 100644 --- a/lib/scripts/lyx_batch.pl.in +++ b/lib/scripts/lyx_batch.pl.in @@ -19,6 +19,7 @@ my $workdir = "$builddir/autotests/out-home"; my $vsuffix = "@PROGRAM_SUFFIX@"; my $lyx_exe = "$builddir/bin/lyx$vsuffix"; my $git_exe = "@LYX_GITVERSION@"; +my $qt_version = "@LYX_USE_QT@"; my $lyxsource = "@LYX_ABS_TOP_SRCDIR@"; my $data = "$lyxsource/development/batchtests"; @@ -94,6 +95,9 @@ if (defined($Tests{$test}->{command_line})) { push(@command, @{$Tests{$test}->{command_line}}); } if (defined($Tests{$test}->{commands})) { + if ($qt_version eq "QT5") { + push(@command, "-platform", "offscreen"); + } push(@command, "-x", "command-sequence " . join(';', @{$Tests{$test}->{commands}})); }