From 8b5ff81e3065335191e73f11f73a21d770bf7767 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Thu, 23 Jul 2009 18:35:17 +0000 Subject: [PATCH] Convert a build spec into a commandline --- run_nightlies.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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: -- 2.47.0