RunCommandLogs: add a helper for if it failed with an exec error
[?]
Nov 19, 2021, 7:17 PM
TEAGCKJVTRUITX6IRXFYFNF3TVSWFJTBFTI7HIDMLO7GD5DPR5WQCDependencies
- [2]
52IH5FN3RunCommandLogs: add helpers for if it is running/failed/signaled - [*]
2GNJU4VFRunCommandLogs: init table - [*]
VYS5RV7YRunCommand: create run logs for each execution - [*]
FFJI7K6ERunCommandLogs: test recording a signaled process without a core dump - [*]
CBU7KGFERecord the errno if exec fails - [*]
RZBW3YWDRunCommandLogs: add a did_succeed helper
Change contents
- edit in src/lib/Hydra/Schema/Result/RunCommandLogs.pm at line 299
=head2 did_fail_with_exec_errorLooks in the database to see if the task failed with a signal.Return:* true if the task is not running and failed with a signal.* false if the task is running or exited with an exit code.=cutsub did_fail_with_exec_error {my ($self) = @_; - edit in src/lib/Hydra/Schema/Result/RunCommandLogs.pm at line 312
if ($self->is_running()) {return 0;} - edit in src/lib/Hydra/Schema/Result/RunCommandLogs.pm at line 316
if ($self->did_succeed()) {return 0;}return defined($self->error_number);} - edit in t/Schema/Result/RunCommandLogs.t at line 59
ok(!$runlog->did_fail_with_exec_error(), "The process did not fail to start due to an exec error."); - edit in t/Schema/Result/RunCommandLogs.t at line 74
ok(!$runlog->did_fail_with_exec_error(), "The process did not fail to start due to an exec error."); - edit in t/Schema/Result/RunCommandLogs.t at line 90
ok(!$runlog->did_fail_with_exec_error(), "The process did not fail to start due to an exec error."); - edit in t/Schema/Result/RunCommandLogs.t at line 106
ok(!$runlog->did_fail_with_exec_error(), "The process did not fail to start due to an exec error."); - edit in t/Schema/Result/RunCommandLogs.t at line 122
ok(!$runlog->did_fail_with_exec_error(), "The process did not fail to start due to an exec error."); - edit in t/Schema/Result/RunCommandLogs.t at line 138
ok($runlog->did_fail_with_exec_error(), "The process failed to start due to an exec error."); - edit in t/plugins/RunCommand/errno.t at line 43[8.850][7.1585]
ok($runlog->did_fail_with_exec_error(), "The process failed to start due to an exec error.");