]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
sg-run-job: Provide new recipe-flag facility
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 12 Jun 2018 12:17:19 +0000 (13:17 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Jun 2018 14:00:06 +0000 (15:00 +0100)
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@eu.citrix.com>
sg-run-job

index 0a3f6886ffb2f84168c5fed6caa192b8013df3f5..1355876fe3fcaa0cf0014f375adbe95df956144e 100755 (executable)
@@ -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...