forked from ungleich-public/cdist
+\n in writelines
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
dc416f5f49
commit
3ebece5784
1 changed files with 2 additions and 2 deletions
4
test.py
4
test.py
|
@ -46,11 +46,11 @@ class Exec(unittest.TestCase):
|
|||
self.shell_true = os.path.join(self.temp_dir, "shell_true")
|
||||
|
||||
true_fd = open(self.shell_true, "w")
|
||||
true_fd.writelines(["#!/bin/sh", "/bin/true"])
|
||||
true_fd.writelines(["#!/bin/sh\n", "/bin/true"])
|
||||
true_fd.close()
|
||||
|
||||
false_fd = open(self.shell_false, "w")
|
||||
false_fd.writelines(["#!/bin/sh", "/bin/false"])
|
||||
false_fd.writelines(["#!/bin/sh\n", "/bin/false"])
|
||||
false_fd.close()
|
||||
|
||||
def tearDown(self):
|
||||
|
|
Loading…
Reference in a new issue