summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcobbler/cobbler.py5
-rw-r--r--tests/tests.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index 01639ca..710fb05 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""
Command line interface for cobbler, a network provisioning configuration
library. Consult 'man cobbler' for general info. This class serves
@@ -269,4 +271,5 @@ def main():
sys.exit(1)
sys.exit(0)
-
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/tests/tests.py b/tests/tests.py
index 03fa5f6..4d670ba 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -286,7 +286,7 @@ 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"
+ app = "cobbler/cobbler.py"
self.assertTrue(subprocess.call([app,"list"]) == 0)
if __name__ == "__main__":