Add masked unit tests for enable and disable

This commit is contained in:
Tai Groot
2021-05-15 20:02:05 -07:00
parent 5865d30ada
commit 34f11bfcd1
4 changed files with 55 additions and 2 deletions

View File

@@ -65,6 +65,9 @@ func filterErr(stderr string) error {
if matched, _ := regexp.MatchString(`DBUS_SESSION_BUS_ADDRESS`, stderr); matched {
return ErrBusFailure
}
if matched, _ := regexp.MatchString(`is masked`, stderr); matched {
return ErrMasked
}
if matched, _ := regexp.MatchString(`Failed`, stderr); matched {
return ErrUnspecified
}