[lnst] #1: Define aliases from CLI when executing recipe

lnst trac at fedorahosted.org
Mon Aug 13 10:43:24 UTC 2012


#1: Define aliases from CLI when executing recipe
------------------------+-----------------------
 Reporter:  rpazdera    |       Owner:  somebody
     Type:  task        |      Status:  new
 Priority:  major       |   Milestone:
Component:  component1  |     Version:
 Keywords:              |  Blocked By:
 Blocking:              |
------------------------+-----------------------
 This feature could be useful for parametrizing recipe execution. Something
 very similar is used by GNU make utility for overriding variables [#link1
 (1)].

 In Makefile, the CLI assignment overrides the value all the way through
 the
 file. This could be useful later for changing recipe parameters when we
 try to
 integrate LNST with beaker. Here's an example:

 {{{./nettestctl.py -e -a alias=value -A alias=value -r recipe.xml run}}}

 It could be done in two modes:

 {{{-a, --define_alias name=value}}}
     this would define the alias on a global level. Aliases defined this
 way could be redefined by definitions within the recipe

 {{{-A, --override_alias name=value}}}
     this version would override all future recipe definitions and always
 prefer this value over any definitions within the recipe

 The XmlTemplates module is prepared for this already.

 [=#link1 (1)]
 http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_9.html#SEC90

-- 
Ticket URL: <https://fedorahosted.org/lnst/ticket/1>
lnst <http://example.org/>
My example project


More information about the LNST-developers mailing list