Remove sudo prefix from command if detected
This commit is contained in:
parent
a77777987d
commit
cbd4e2bcac
2 changed files with 14 additions and 0 deletions
|
@ -51,3 +51,12 @@
|
|||
assert $state equals 0
|
||||
assert "$output" same_as "no"
|
||||
}
|
||||
|
||||
@test 'is_auto_notify_ignored - AUTO_NOTIFY_WHITELIST allowed with sudo' {
|
||||
AUTO_NOTIFY_WHITELIST="foobar"
|
||||
|
||||
run _is_auto_notify_ignored "sudo foobar baz"
|
||||
|
||||
assert $state equals 0
|
||||
assert "$output" same_as "no"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue