Module: tools
Branch: master
Commit: 0a55c3acb2097e16acef12104fc26d9fcb2c7cca
URL: http://source.winehq.org/git/tools.git/?a=commit;h=0a55c3acb2097e16acef1210…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Feb 8 08:08:06 2017 +0100
winetest: We may not have a report tag for the error message.
For instance if the commit id is not valid we issue the error message
before $tag is set.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/dissect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winetest/dissect b/winetest/dissect
index ccb6d1d..f5b6744 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -63,7 +63,7 @@ sub mydie(@) {
print STDERR "$name0:error: unable to rename '$tmpdir' to '$errdir': $!\n";
exit 3;
}
- my $label = substr($tag,1) || "???";
+ my $label = $tag ? substr($tag, 1) : "<notag>";
if (open ERR, ">$errdir/error")
{
print ERR "$label: ", @_;
Module: tools
Branch: master
Commit: 9be551efdd99ae2504c089b2b979b15e87779b52
URL: http://source.winehq.org/git/tools.git/?a=commit;h=9be551efdd99ae2504c089b2…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Feb 8 08:07:43 2017 +0100
winetest: Don't count on $TMPDIR staying set.
The BEGIN code block will be run the first time the web server loads
the CGI script. However the web server may use caching techniques that
result in the script being run a second time while skipping the BEGIN
code block. Furthermore $TMPDIR may have been unset which will cause
tempdir(DIR => "") to fail with a permission denied error.
Perl variables are preserved however so use them instead.
Still set $TMPDIR so the CGI temporary file will be on the right
filesystem, resulting in a faster move operation.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/winetest.cgi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/winetest/winetest.cgi b/winetest/winetest.cgi
index 93906bf..93afee5 100755
--- a/winetest/winetest.cgi
+++ b/winetest/winetest.cgi
@@ -22,7 +22,6 @@ use vars qw/$queuedir $maxfilesize/;
BEGIN {
require "winetest.conf";
- $ENV{TMPDIR} = $queuedir;
}
use File::Copy;
@@ -30,6 +29,7 @@ use File::Temp qw(tempdir);
use CGI qw(:standard);
# Cater for some overhead
$CGI::POST_MAX = $maxfilesize + 1024;
+$ENV{TMPDIR} = $queuedir;
my $name = param ("reportfile");
my $error = cgi_error ();
@@ -47,7 +47,7 @@ sub move_file($)
{
my ($filename) = @_;
my $orig = tmpFileName($filename);
- my $tmpdir = tempdir ("repXXXXX", DIR=>$ENV{TMPDIR});
+ my $tmpdir = tempdir ("repXXXXX", DIR => $queuedir);
chmod 0777, $tmpdir;
chmod 0666&~umask, $orig;
my $size = -s $orig;
Module: tools
Branch: master
Commit: 5061b7f7e43b5035e3f492ba726c76c7e84168ca
URL: http://source.winehq.org/git/tools.git/?a=commit;h=5061b7f7e43b5035e3f492ba…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Feb 8 08:07:23 2017 +0100
winetest: Use a move function that works across filesystems.
If CGI ignores $TMPDIR for any reason, the file will likely be in /tmp,
i.e. on a different filesystem.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/winetest.cgi | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/winetest/winetest.cgi b/winetest/winetest.cgi
index 98a5260..93906bf 100755
--- a/winetest/winetest.cgi
+++ b/winetest/winetest.cgi
@@ -25,6 +25,7 @@ BEGIN {
$ENV{TMPDIR} = $queuedir;
}
+use File::Copy;
use File::Temp qw(tempdir);
use CGI qw(:standard);
# Cater for some overhead
@@ -50,7 +51,9 @@ sub move_file($)
chmod 0777, $tmpdir;
chmod 0666&~umask, $orig;
my $size = -s $orig;
- (rename $orig, "$tmpdir/report")?
+ # Note that we are stealing CGI's temporary file which typically results
+ # in a warning in the web server's logs. Still seems to work though.
+ (move $orig, "$tmpdir/report")?
"Received $filename ($size bytes).\n":
"Error: can't store $filename: $!\n";
}
Module: tools
Branch: master
Commit: ee17ccb6e73c5d10d0a3d06d837e920100ac5cd2
URL: http://source.winehq.org/git/tools.git/?a=commit;h=ee17ccb6e73c5d10d0a3d06d…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Feb 8 08:06:21 2017 +0100
winetest: Set Windows 8 and 10's test failed limit back to normal.
They have improved enough that a normal WineTest run should be under the
standard limit.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/dissect | 2 --
1 file changed, 2 deletions(-)
diff --git a/winetest/dissect b/winetest/dissect
index 2f2faa1..ccb6d1d 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -218,8 +218,6 @@ if ($plid==1 && $major==4) {
} elsif ($plid==3) {
#$version = "ce$major$minor";
}
-# Give a little slack to the new platforms.
-$maxfailedtests += 20 if ($version eq "win8" || $version eq "win10");
if ($prediluvian and not $acceptprediluvianwin) { mydie "platform $version not accepted\n"; }