Francois Gouget : testbot: Remove uneeded WineTestBot::{Jobs, Patches, Users} prefixes.

Alexandre Julliard julliard at winehq.org
Thu Apr 26 13:32:13 CDT 2018


Module: tools
Branch: master
Commit: 34c58beb665702d1f24dab6ea95379a80a675ec1
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=34c58beb665702d1f24dab6ea95379a80a675ec1

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Apr 26 09:45:38 2018 +0200

testbot: Remove uneeded WineTestBot::{Jobs, Patches, Users} prefixes.

They are no longer needed now that the Jobs <-> Patches circular
dependency is handled correctly.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/WineTestBot/Jobs.pm    | 4 ++--
 testbot/lib/WineTestBot/Patches.pm | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index edfe916..2dfadb0 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -426,13 +426,13 @@ my @PropertyDescriptors = (
   CreateBasicPropertyDescriptor("Id", "Job id", 1, 1, "S",  5),
   CreateBasicPropertyDescriptor("Archived", "Job is archived", !1, 1, "B", 1),
   CreateItemrefPropertyDescriptor("Branch", "Branch", !1, 1, \&CreateBranches, ["BranchName"]),
-  CreateItemrefPropertyDescriptor("User", "Author", !1, 1, \&WineTestBot::Users::CreateUsers, ["UserName"]),
+  CreateItemrefPropertyDescriptor("User", "Author", !1, 1, \&CreateUsers, ["UserName"]),
   CreateBasicPropertyDescriptor("Priority", "Priority", !1, 1, "N", 1),
   CreateEnumPropertyDescriptor("Status", "Status", !1, 1, ['queued', 'running', 'completed', 'badpatch', 'badbuild', 'boterror', 'canceled']),
   CreateBasicPropertyDescriptor("Remarks", "Remarks", !1, !1, "A", 128),
   CreateBasicPropertyDescriptor("Submitted", "Submitted", !1, !1, "DT", 19),
   CreateBasicPropertyDescriptor("Ended", "Ended", !1, !1, "DT", 19),
-  CreateItemrefPropertyDescriptor("Patch", "Submitted from patch", !1, !1, \&WineTestBot::Patches::CreatePatches, ["PatchId"]),
+  CreateItemrefPropertyDescriptor("Patch", "Submitted from patch", !1, !1, \&CreatePatches, ["PatchId"]),
   CreateDetailrefPropertyDescriptor("Steps", "Steps", !1, !1, \&CreateSteps),
 );
 SetDetailrefKeyPrefix("Job", @PropertyDescriptors);
diff --git a/testbot/lib/WineTestBot/Patches.pm b/testbot/lib/WineTestBot/Patches.pm
index 5431d9f..955e336 100644
--- a/testbot/lib/WineTestBot/Patches.pm
+++ b/testbot/lib/WineTestBot/Patches.pm
@@ -244,7 +244,7 @@ sub Submit($$$)
   my $First = 1;
   foreach my $Module (keys %Modules)
   {
-    my $Jobs = WineTestBot::Jobs::CreateJobs();
+    my $Jobs = CreateJobs();
 
     # Create a new job for this patch
     my $NewJob = $Jobs->Add();
@@ -343,7 +343,7 @@ sub Submit($$$)
   }
   $self->Disposition($Disposition);
 
-  WineTestBot::Jobs::ScheduleJobs();
+  ScheduleJobs();
 
   return undef;
 }




More information about the wine-cvs mailing list