summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-07-12 17:00:49 -0400
committerJim Meyering <jim@meyering.net>2006-07-12 17:00:49 -0400
commitbea30de4beb585b5c79d10c6164e65713f1611bc (patch)
tree435799b37baa464c21e42e622914cbdd8b33276f /tests
parentf061199e4f8a3ea0e769325e72029ca7d791b206 (diff)
downloadthird_party-cobbler-bea30de4beb585b5c79d10c6164e65713f1611bc.tar.gz
third_party-cobbler-bea30de4beb585b5c79d10c6164e65713f1611bc.tar.xz
third_party-cobbler-bea30de4beb585b5c79d10c6164e65713f1611bc.zip
Added templating support through new --ks_meta option which works like --kopts. The parameter is a space delimited list of key=value pairs, which allows the variables entered to be evaluated through Cheetah. Thus kickstarts are now Cheetah templates. All templating errors are ignored so usage of a $ in a template is still legal where it doesn't reference a variable. Error ignoring should be finer grained and this does need some tests. Currently this only works for kickstarts on filesystems, and I'm not sure what the behavior for http and nfs should be. Anyhow, fairly useful stuff.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.py b/tests/tests.py
index 85ed0b9..11bf63f 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -286,8 +286,8 @@ class TestCLIBasic(BootTest):
# nothing major is broke at top level. Full CLI command testing
# is not included (yet) since the API tests hit that fairly throughly
# and it would easily double the length of the tests.
- app = "cobbler/cobbler.py"
- self.assertTrue(subprocess.call([app,"list"]) == 0)
+ app = "/usr/bin/python"
+ self.assertTrue(subprocess.call([app,"cobbler/cobbler.py","list"]) == 0)
if __name__ == "__main__":
if not os.path.exists("setup.py"):