Use sudo instead of su for tests

This commit is contained in:
Ilan Cosman 2020-05-24 14:55:52 -07:00
parent a21c438a20
commit 4f535e6e00

View File

@ -8,4 +8,4 @@ end
@test 'None' (_context) -z
@test 'SSH' (set -g SSH_TTY 'true'; _context) = $USER'@'(prompt_hostname)' '
@test 'Root' (_tide_decolor (su -c "fish -c 'source $sourceFile;_tide_item_context'")) = 'root@'(prompt_hostname)' '
@test 'Root' (_tide_decolor (sudo fish -c "source $sourceFile;_tide_item_context")) = 'root@'(prompt_hostname)' '