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.jack...@eu.citrix.com>
---
 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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to