Commit 989e4d4a authored by Patrick Monnerat's avatar Patrick Monnerat
Browse files

runtests.pl: allow <file[1-4]> tags in client section.

This enables tests to create more than one file on the client side.
parent f0cda341
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -3808,9 +3808,10 @@ sub singletest {
        unlink($memdump);
    }

    # create a (possibly-empty) file before starting the test
    my @inputfile=getpart("client", "file");
    my %fileattr = getpartattr("client", "file");
    # create (possibly-empty) files before starting the test
    for my $partsuffix (('', '1', '2', '3', '4')) {
        my @inputfile=getpart("client", "file".$partsuffix);
        my %fileattr = getpartattr("client", "file".$partsuffix);
        my $filename=$fileattr{'name'};
        if(@inputfile || $filename) {
            if(!$filename) {
@@ -3826,6 +3827,7 @@ sub singletest {
            print OUTFILE $fileContent;
            close(OUTFILE);
        }
    }

    my %cmdhash = getpartattr("client", "command");