It's better to take the step dependencies into account and to verify
that the previous step was dealing with a Wine patch.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
---
testbot/bin/WineRunTask.pl | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl
index ff8aab9f4..9fa263eea 100755
--- a/testbot/bin/WineRunTask.pl
+++ b/testbot/bin/WineRunTask.pl
@@ -441,9 +441,10 @@ if ($Step->Type eq "…
[View More]single")
}
$Script .= "> $RptFileName\r\n";
- # If StepNo is 1 then the user gave us an executable. Then there is no
- # telling if it's going to follow the Wine test standards.
- $IsWineTest = ($StepNo != 1);
+ # If the user gave us an executable there is no telling
+ # if it is going going to follow the Wine test standards.
+ $IsWineTest = (defined $Step->PreviousNo and
+ $Job->Steps->GetItem($Step->PreviousNo)->FileType eq "patchdlls");
}
elsif ($Step->Type eq "suite")
{
--
2.18.0
[View Less]
This lets the browser offer to open the patches in a text editor instead
of systematically suggesting to save them to disk.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
---
Not an urgent or very important patch but I believe it will make some
people pretty happy.
testbot/web/GetFile.pl | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/testbot/web/GetFile.pl b/testbot/web/GetFile.pl
index 7e274a8bf..1fe140788 100644
--- a/testbot/web/GetFile.pl
+…
[View More]++ b/testbot/web/GetFile.pl
@@ -84,9 +84,11 @@ sub GetFile($$$)
# HTTP/1.0
$Request->headers_out->add("Pragma", "no-cache");
-
- # Binary file
- $Request->content_type("application/octet-stream");
+
+ # Text or binary file
+ my $MIME = $Step->FileType eq "patchdlls" ? "text/plain" :
+ "application/octet-stream";
+ $Request->content_type($MIME);
$Request->headers_out->add("Content-Disposition",
'attachment; filename="' . $Step->FileName . '"');
--
2.18.0
[View Less]