mirror of
https://github.com/go-task/task.git
synced 2026-09-01 19:50:16 +02:00
feat: command timeouts (#2898)
This commit is contained in:
20
testdata/ignore_errors/Taskfile.yml
vendored
20
testdata/ignore_errors/Taskfile.yml
vendored
@@ -18,3 +18,23 @@ tasks:
|
||||
cmd-should-fail:
|
||||
cmds:
|
||||
- cmd: exit 1
|
||||
|
||||
task-timeout-should-pass:
|
||||
cmds:
|
||||
- cmd: sleep 10
|
||||
timeout: 200ms
|
||||
- echo "reached the end"
|
||||
ignore_error: true
|
||||
|
||||
cmd-timeout-should-pass:
|
||||
cmds:
|
||||
- cmd: sleep 10
|
||||
timeout: 200ms
|
||||
ignore_error: true
|
||||
- echo "reached the end"
|
||||
|
||||
cmd-timeout-should-fail:
|
||||
cmds:
|
||||
- cmd: sleep 10
|
||||
timeout: 200ms
|
||||
- echo "reached the end"
|
||||
|
||||
Reference in New Issue
Block a user