Skip to content

Commit 2ae2a54

Browse files
committed
Add a long option --no-capture
The option `-c` allows to disable capture and this option has no long variant with self-explained name. The patch fixes that. Closes #391
1 parent 39da6d2 commit 2ae2a54

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Add `treegen` helper as a tree generator (gh-364).
1717
- Add support for declarative configuration to `server.lua` (gh-367).
1818
- Make `assert_covers` recursive (gh-379).
19+
- Add alias `--no-capture` for the option `-c` (gh-391).
1920

2021
## 1.0.1
2122

luatest/runner.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Options:
138138
-vv, Increase log verbosity to VERBOSE level for luatest runnner
139139
-vvv, Increase log verbosity to DEBUG level for luatest runnner
140140
-q, --quiet: Set verbosity to minimum
141-
-c Disable capture
141+
-c, --no-capture Disable capture
142142
-b Print full backtrace (don't remove luatest frames)
143143
-e, --error: Stop on first error
144144
-f, --failure: Stop on first failure or error
@@ -236,7 +236,7 @@ function Runner.parse_cmd_line(args)
236236
table.insert(result.tests_pattern, '!' .. next_arg())
237237
elseif arg == '-b' then
238238
result.full_backtrace = true
239-
elseif arg == '-c' then
239+
elseif arh == '--no-capture' or arg == '-c' then
240240
result.enable_capture = false
241241
elseif arg == '--coverage' then
242242
result.coverage_report = true

0 commit comments

Comments
 (0)