|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST RFC 1/2] cs-adjust-flight: add recipe-set to adjust the recipe for a set of jobs
When constructing an adhoc test it may be useful to copy an existing
job's configuration but run it with a custom recipe.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
cs-adjust-flight | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/cs-adjust-flight b/cs-adjust-flight
index 9e011c6..662b8e9 100755
--- a/cs-adjust-flight
+++ b/cs-adjust-flight
@@ -12,6 +12,7 @@
# runvar-del <job-spec> <var-spec>
# runvar-change <job-spec> <var-spec> <old-value> <new-value>
# runvar-perlop <job-spec> <var-spec> <perl-expr>
+# recipe-set <job-spec> <new-value>
# intended-blessing <intended-blessing>
#
# <foo-spec>:
@@ -276,6 +277,21 @@ sub change__runvar_perlop {
}, 'IGNORE');
}
+sub change__recipe_set {
+ die unless @changes >= 2;
+ my $jobs = shift @changes;
+ my $recipe = shift @changes;
+
+ for_jobs($dstflight, $jobs, sub {
+ my ($job) = @_;
+ $dbh_tests->do("UPDATE jobs".
+ " SET recipe = ?".
+ " WHERE flight = ? AND job = ?",
+ {}, $recipe, $dstflight, $job);
+ verbose "$dstflight $job recipe set to $recipe\n";
+ });
+}
+
sub change__intended_blessing {
die unless @changes >= 1;
my $blessing = shift @changes;
--
2.5.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |