From: Sapan Bhatia Date: Thu, 23 Jul 2009 18:35:17 +0000 (+0000) Subject: Convert a build spec into a commandline X-Git-Tag: 4.3-rc11~66 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8b5ff81e3065335191e73f11f73a21d770bf7767;p=build.git Convert a build spec into a commandline --- diff --git a/run_nightlies.py b/run_nightlies.py index a07e7a4f..fe9d8a68 100755 --- a/run_nightlies.py +++ b/run_nightlies.py @@ -32,6 +32,25 @@ def complete_build_spec_with_defaults (build, default_build): return build +# Turn a concrete build into a commandline + +def concrete_build_to_commandline(concrete_build): + cmdline = """%(shell) \ + %(vbuildinghtly) \ + -b %(pldistro)-%(fcdistro)-%(arch)-%(myplc_version)-%(release)-%(date) \ + -f %(distro) \ + -m %(mailto) \ + -p %(personality) \ + -r %(webpath) \ + -s %(svnpath) \ + -t %(tags) \ + -w %(webpath)/%(pldistro)/%(distro) \ + %(runtests) """ % concrete_build + + return cmdline + + + # Turn build parameter dicts into commandlines and execute them def process_builds (builds, build_names, default_build): for build_name in build_names: