mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unittest - SIGABORT was not being correctly identified
* In Python if the process receives a signal, the exit code is negative
This commit is contained in:
parent
b4f33ec0c6
commit
c9102fd79c
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class CommandError(Exception):
|
|||
"\n*** Start STDOUT ***\n{2}\n*** End STDOUT ***\n"
|
||||
"\n*** Start STDERR ***\n{3}\n*** End STDERR ***\n"
|
||||
)
|
||||
if code == signal.SIGABRT:
|
||||
if code == -signal.SIGABRT:
|
||||
self.msg = ("Command '{0}' was aborted, likely due to not "
|
||||
"finishing in due time. The exit code was '{1}'.\n"
|
||||
) + msg_suffix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue