diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-07-12 17:00:49 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-07-12 17:00:49 -0400 |
commit | bea30de4beb585b5c79d10c6164e65713f1611bc (patch) | |
tree | 435799b37baa464c21e42e622914cbdd8b33276f /tests | |
parent | f061199e4f8a3ea0e769325e72029ca7d791b206 (diff) | |
download | third_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.py | 4 |
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"): |