diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-10-05 12:19:13 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-10-05 12:19:13 +0100 |
commit | c25c7fae299b7ac8fc2e92f4214272aaf3de336b (patch) | |
tree | 8fe988e7bd9d888882642a53ee57824391475786 /morphlib/execute_tests.py | |
parent | 1cc271c29d48eb1863fca3d3fe4276ce4f8141c9 (diff) | |
download | morph-c25c7fae299b7ac8fc2e92f4214272aaf3de336b.tar.gz |
Differentiate between real and fake root.
Diffstat (limited to 'morphlib/execute_tests.py')
-rw-r--r-- | morphlib/execute_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/execute_tests.py b/morphlib/execute_tests.py index 2aedcd7a..2f97051a 100644 --- a/morphlib/execute_tests.py +++ b/morphlib/execute_tests.py @@ -52,9 +52,9 @@ class ExecuteTests(unittest.TestCase): def test_runv_sets_working_directory(self): self.assertEqual(self.e.runv(['pwd']), '/\n') - def test_runs_as_root_when_requested(self): - self.assertEqual(self.e.run(['id -u'], as_root=True), ['0\n']) + def test_runs_as_fakeroot_when_requested(self): + self.assertEqual(self.e.run(['id -u'], as_fakeroot=True), ['0\n']) - def test_runvs_as_root_when_requested(self): - self.assertEqual(self.e.runv(['id', '-u'], as_root=True), '0\n') + def test_runvs_as_fakeroot_when_requested(self): + self.assertEqual(self.e.runv(['id', '-u'], as_fakeroot=True), '0\n') |