test-nginx icon indicating copy to clipboard operation
test-nginx copied to clipboard

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

Open outsinre opened this issue 1 year ago • 0 comments

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

outsinre avatar Apr 16 '24 06:04 outsinre