1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-19 01:00:42 +01:00

Merge pull request #299 from evverx/dnf-history

Add `dnf history` error for the sudo rule
This commit is contained in:
Vladimir Iakovlev 2015-07-21 16:15:08 +03:00
commit 8c395377f8
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ from tests.utils import Command
('need to be root', ''), ('need to be root', ''),
('need root', ''), ('need root', ''),
('must be root', ''), ('must be root', ''),
('You don\'t have access to the history DB.', ''),
('', "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'")]) ('', "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'")])
def test_match(stderr, stdout): def test_match(stderr, stdout):
assert match(Command(stderr=stderr, stdout=stdout), None) assert match(Command(stderr=stderr, stdout=stdout), None)

View File

@ -14,6 +14,7 @@ patterns = ['permission denied',
'need to be root', 'need to be root',
'need root', 'need root',
'only root can do that', 'only root can do that',
'You don\'t have access to the history DB.',
'authentication is required'] 'authentication is required']