git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87a8401
)
Convert a build spec into a commandline
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Thu, 23 Jul 2009 18:35:17 +0000
(18:35 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Thu, 23 Jul 2009 18:35:17 +0000
(18:35 +0000)
run_nightlies.py
patch
|
blob
|
history
diff --git
a/run_nightlies.py
b/run_nightlies.py
index
a07e7a4
..
fe9d8a6
100755
(executable)
--- a/
run_nightlies.py
+++ b/
run_nightlies.py
@@
-32,6
+32,25
@@
def complete_build_spec_with_defaults (build, default_build):
return 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:
# Turn build parameter dicts into commandlines and execute them
def process_builds (builds, build_names, default_build):
for build_name in build_names: