[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 06/17] sg-run-job: Provide new recipe-flag facility



Individual recipes can now honour modifications requested by setting
runvars like recipe_<flag>.

No callers yet so no functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 sg-run-job | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sg-run-job b/sg-run-job
index 0a3f688..1355876 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -160,6 +160,13 @@ proc testid_matches_globs {testid globs} {
     return 0
 }
 
+proc recipe-flag {flagname {def 0}} {
+    global flight jobinfo
+    set name "recipe_$flagname"
+    set val [jobdb::read-runvar $flight $jobinfo(job) $name $def]
+    return [regexp {true|y|1} $val]
+}
+
 #---------- test script handling ----------
 
 #   spwan-ts    IFFAIL TESTID SCRIPT-ARGS...
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.