Commit 7b80424f authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix unittest encoding breakage

Due to the fact that we sanitize now the output from environment
scripts, the unittest needs to be adjusted. My bad for not checking it.

Reviewed-by: imsnah
parent c4ed32cb
...@@ -182,7 +182,7 @@ class TestHooksRunner(unittest.TestCase): ...@@ -182,7 +182,7 @@ class TestHooksRunner(unittest.TestCase):
os.symlink("/usr/bin/env", fname) os.symlink("/usr/bin/env", fname)
self.torm.append((fname, False)) self.torm.append((fname, False))
env_snt = {"PHASE": phase} env_snt = {"PHASE": phase}
env_exp = "PHASE=%s\n" % phase env_exp = "PHASE=%s" % phase
self.failUnlessEqual(self.hr.RunHooks(self.hpath, phase, env_snt), self.failUnlessEqual(self.hr.RunHooks(self.hpath, phase, env_snt),
[(self._rname(fname), HKR_SUCCESS, env_exp)]) [(self._rname(fname), HKR_SUCCESS, env_exp)])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment