test breaking run, if a non existent command is called
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
3ebece5784
commit
1d981200c8
1 changed files with 8 additions and 0 deletions
8
test.py
8
test.py
|
@ -121,6 +121,14 @@ class Config(unittest.TestCase):
|
||||||
|
|
||||||
self.assertRaises(cdist.Error, self.config.run_initial_manifest)
|
self.assertRaises(cdist.Error, self.config.run_initial_manifest)
|
||||||
|
|
||||||
|
def test_initial_manifest_non_existent_command(self):
|
||||||
|
manifest_fd = open(self.init_manifest, "w")
|
||||||
|
manifest_fd.writelines(["#!/bin/sh\n",
|
||||||
|
"thereisdefinitelynosuchcommend"])
|
||||||
|
manifest_fd.close()
|
||||||
|
|
||||||
|
self.assertRaises(cdist.Error, self.config.run_initial_manifest)
|
||||||
|
|
||||||
def test_initial_manifest_parameter_twice(self):
|
def test_initial_manifest_parameter_twice(self):
|
||||||
manifest_fd = open(self.init_manifest, "w")
|
manifest_fd = open(self.init_manifest, "w")
|
||||||
manifest_fd.writelines(["#!/bin/sh\n",
|
manifest_fd.writelines(["#!/bin/sh\n",
|
||||||
|
|
Loading…
Reference in a new issue