Skip to contentSkip to conversation

standalone: Correct arguments to JobDB flight_create

PATCH In review Ian Campbell 2 participants 3 messages Jan 21, 2014 – Jan 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 standalone: Correct arguments to JobDB flight_create

The real jobdb takes $intended and $branch in the other order, meaningthat the standalone db ends up with them backwards.

---
 Osstest/JobDB/Standalone.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/JobDB/Standalone.pm +1 -1
index d3ff1df..14293ef 100644
@@ -56,7 +56,7 @@ sub open ($) {
 }
 
 sub flight_create ($$$) {
-    my ($obj, $branch, $intended) = @_;
+    my ($obj, $intended, $branch) = @_;
     my $fl = $ENV{'OSSTEST_FLIGHT'};
     $fl = 'standalone' unless defined $fl && length $fl;
     die "flight names may not contain ." if $fl =~ m/\./;
Signature · 1 line
1.8.5.2
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] standalone: Correct arguments to JobDB flight_create"):

Quoted 2 lines

The real jobdb takes $intended and $branch in the other order, meaningthat the standalone db ends up with them backwards.

*blrfhl*

#2 lore raw
Quoted 5 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST] standalone: Correct arguments to JobDB flight_create"):

Quoted 2 lines

The real jobdb takes $intended and $branch in the other order, meaningthat the standalone db ends up with them backwards.

*blrfhl*

Quite! I suppose it doesn't matter mcuh in standalone mode because I didn't actually see anything in practice, just I manually did 'select branch frmo flights' and got "play"...

Quoted 1 line

Thanks, I've pushed this to pretest.

Ian.