From 540300e151752112aae050300bc92b6b32631c2a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 5 Jun 2011 20:30:30 +0100 Subject: Fix up sudo test so it should work. Can't know if it does, since can't run tests right now. --- systest | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/systest b/systest index 5055b62..c48d2d4 100755 --- a/systest +++ b/systest @@ -117,8 +117,9 @@ class SystemTest(cliapp.Application): out = self.targetcmd(['cat'], stdin='foo') self.assertEqual(out, 'foo') -# def test_sudo_works(self): -# out = self.targetcmd(['sudo', 'id'], stdin=self.password) +# def test_sudo(self): +# out = self.targetcmd(['sudo', 'id'], +# stdin=self.settings['user-password']) # self.assertMatches(r'^uid=0\(root\)', out) -- cgit v1.2.1