Module: tools
Branch: master
Commit: b89f7fb79cf65d38b9df1f978fca987a8537717f
URL: https://source.winehq.org/git/tools.git/?a=commit;h=b89f7fb79cf65d38b9df1f9…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Feb 3 18:58:58 2021 +0100
testbot/WineTest: Always work around explorer's 'fresh WINEPREFIX' bug.
WineTest.pl assumed that the wineprefix had been set up by WineReconfig
so that pre-initializing it to work around explorer's 'fresh WINEPREFIX'
bug (41713) was not necessary. But that's no longer true so make sure
to always fully initialize the wineprefix before starting any test.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48671
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/build/WineTest.pl | 41 +++++++++++++++--------------------------
1 file changed, 15 insertions(+), 26 deletions(-)
diff --git a/testbot/bin/build/WineTest.pl b/testbot/bin/build/WineTest.pl
index 84ba1cb..dd41fcf 100755
--- a/testbot/bin/build/WineTest.pl
+++ b/testbot/bin/build/WineTest.pl
@@ -63,6 +63,18 @@ sub SetupTest($$)
my $BaseName = SetupWineEnvironment($Mission);
InfoMsg "\nRunning $Test in the $BaseName Wine\n";
InfoMsg "LANG=$ENV{LANG}\n";
+
+ if (!-d $ENV{WINEPREFIX})
+ {
+ # FIXME Wait for the wineserver as a workaround for bug 41713.
+ my $ErrMessage = CreateWinePrefix($Mission, "wait");
+ if (defined $ErrMessage)
+ {
+ LogMsg "Could not create the $BaseName wineprefix: $ErrMessage\n";
+ return 0;
+ }
+ }
+
return $BaseName;
}
@@ -70,10 +82,9 @@ sub WineTestSuite($$$$)
{
my ($Mission, $NoSubmit, $BaseTag, $Args) = @_;
- my $BaseName = SetupTest("WineTest", $Mission);
-
# Run WineTest. Ignore the exit code since it returns non-zero whenever
# there are test failures.
+ my $BaseName = SetupTest("WineTest", $Mission);
my $Tag = SanitizeTag("$BaseTag-$BaseName");
RunWine($Mission, "winetest.exe",
"-c -o '$DataDir/$BaseName.report' -t $Tag ". ShArgv2Cmd(@$Args));
@@ -128,20 +139,9 @@ sub TestPatch($$)
return 1 if (!@TestList);
}
- my $BaseName = SetupTest("the tests", $Mission);
- if (!-d $ENV{WINEPREFIX})
- {
- # FIXME Wait for the wineserver as a workaround for bug 41713.
- my $ErrMessage = CreateWinePrefix($Mission, "wait");
- if (defined $ErrMessage)
- {
- LogMsg "Could not create the $BaseName wineprefix: $ErrMessage\n";
- return 0;
- }
- }
-
# Run WineTest. Ignore the exit code since it returns non-zero whenever
# there are test failures.
+ my $BaseName = SetupTest("the tests", $Mission);
RunWine($Mission, "winetest.exe",
"-c -o '$DataDir/$BaseName.report' -t do.not.submit ".
join(" ", @TestList));
@@ -177,18 +177,7 @@ sub TestExe($$$)
my ($Mission, $FileName, $Args) = @_;
my $BaseName = SetupTest("the tests", $Mission);
- if (!-d $ENV{WINEPREFIX})
- {
- # FIXME Wait for the wineserver as a workaround for bug 41713.
- my $ErrMessage = CreateWinePrefix($Mission, "wait");
- if (defined $ErrMessage)
- {
- LogMsg "Could not create the $BaseName wineprefix: $ErrMessage\n";
- return 0;
- }
- }
-
- my $TestDir = GetTestDir($Mission);
+ my $TestDir = GetTestDir($Mission); # needs $WINEPREFIX
if ($TestDir eq ".")
{
$FileName = "$DataDir/staging/$FileName";
Module: tools
Branch: master
Commit: 8fb57085db757d676acce6392bcc109da6e890e5
URL: https://source.winehq.org/git/tools.git/?a=commit;h=8fb57085db757d676acce63…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Feb 3 02:08:30 2021 +0100
testbot: Fix the webpatches setup instructions.
The webpatches directory should be created in the TestBot directory.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/doc/INSTALL.txt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/testbot/doc/INSTALL.txt b/testbot/doc/INSTALL.txt
index 0dd5710..7565d6b 100644
--- a/testbot/doc/INSTALL.txt
+++ b/testbot/doc/INSTALL.txt
@@ -79,9 +79,8 @@ Setup for Wine's patches site:
using the WineTestBot web interface and that the results are sane.
You may also want to run with $PatchFromEMailOverride set for a while
to spot any issue under load.
-- In $HOME/tools/testbot/var, set up the webpatches symbolic link to point to
- where the patches website stores its patches and test results. Typically:
- ln -s $HOME/patches $HOME/tools/testbot/var/webpatches
+- In $HOME/tools/testbot/var, create the webpatches directory:
+ mkdir $HOME/tools/testbot/var/webpatches
- Use a cron job to run WinePatchesWebSubmit.pl periodically. For instance:
*/5 * * * * $HOME/tools/testbot/bin/WinePatchesWebSubmit.pl