openresty / test-nginx

Data-driven test scaffold for Nginx C module and OpenResty Lua library development
http://search.cpan.org/dist/Test-Nginx
438 stars 105 forks source link

How to get the result of `--- init` data section? #167

Open outsinre opened 4 months ago

outsinre commented 4 months ago

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()?