Skip to contentSkip to conversation

standalone: add blessing to flights table.

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 standalone: add blessing to flights table.

sg-check-tested wants this to exist.

I haven't implemented Osstest/JobDB/Standalone::job_ensure_started, which should transition from 'contructing' to 'running' because I'm not hitting that path.

---
 Osstest/JobDB/Standalone.pm | 4 ++--
 standalone-reset            | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
Osstest/JobDB/Standalone.pm +2 -2
index 14293ef..45ec9ca 100644
@@ -67,8 +67,8 @@ END
     }
     $dbh_tests->do(<<END, {}, $fl, $branch, $intended);
              INSERT INTO flights
-                         (flight, branch, intended)
-                  VALUES (?, ?, ?)
+                         (flight, blessing, branch, intended)
+                  VALUES (?, 'constructing', ?, ?)
 END
     return $fl
 }
standalone-reset +1 -0
index 8be7e86..83a6606 100755
@@ -131,6 +131,7 @@ else
 	sqlite3 standalone.db <<END
 		CREATE TABLE flights (
 			flight TEXT PRIMARY KEY,
+			blessing TEXT,
 			intended TEXT,
 			branch TEXT
 			);
Signature · 1 line
1.8.5.2
#1 lore raw

ping

Quoted 39 lines · Ian Campbell

sg-check-tested wants this to exist.

I haven't implemented Osstest/JobDB/Standalone::job_ensure_started, which should transition from 'contructing' to 'running' because I'm not hitting that path.

---
 Osstest/JobDB/Standalone.pm | 4 ++--
 standalone-reset            | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
Osstest/JobDB/Standalone.pm +2 -2
index 14293ef..45ec9ca 100644
@@ -67,8 +67,8 @@ END
     }
     $dbh_tests->do(<<END, {}, $fl, $branch, $intended);
              INSERT INTO flights
-                         (flight, branch, intended)
-                  VALUES (?, ?, ?)
+                         (flight, blessing, branch, intended)
+                  VALUES (?, 'constructing', ?, ?)
 END
     return $fl
 }
standalone-reset +1 -0
index 8be7e86..83a6606 100755
@@ -131,6 +131,7 @@ else
 	sqlite3 standalone.db <<END
 		CREATE TABLE flights (
 			flight TEXT PRIMARY KEY,
+			blessing TEXT,
 			intended TEXT,
 			branch TEXT
 			);
Acked-by
#2 lore raw

Ian Campbell writes ("Re: [PATCH OSSTEST] standalone: add blessing to flights table."):

Quoted 10 lines

ping

Quoted 7 lines · Ian Campbell

sg-check-tested wants this to exist.

I haven't implemented Osstest/JobDB/Standalone::job_ensure_started, which should transition from 'contructing' to 'running' because I'm not hitting that path.