mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
actions: When action errors out, log a better message
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
1274ffdf87
commit
3a7dd4e812
2 files changed
+42
-4
No files matched your search
@@ -32,7 +32,7 @@ def fixture_popen():
|
||||
popen.called_with_write_fd.append(write_fd)
|
||||
os.write(write_fd, bytes(popen.return_value, encoding='utf-8'))
|
||||
proc = Mock()
|
||||
proc.communicate.return_value = ('', '')
|
||||
proc.communicate.return_value = (b'', b'')
|
||||
proc.returncode = 0
|
||||
return proc
|
||||
|
||||
|
||||
Reference in new issue
Block a user