openresty / openresty/test-nginx
How to get the result of `--- init` data section?
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 456
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
Suppose I have a block look like this:
=== TEST 2: test init
--- init
my $file = glob('compose.txt') ;
my @cmd = ("docker", "compose", "-f", $file, "ps") ;
system(@cmd) ;
How do I capture the output of system()?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading how test-nginx handles the --- init data section and how the shown Perl system() call is used. Check existing examples or documentation for capturing command output, then clarify the supported approach and verify it with a minimal init block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, perl
- Domain
- testing-qa, tooling
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100