diff options
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 809230ce5..96df8d524 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3175,6 +3175,13 @@ sub singletest { if(@stdintest) { my $stdinfile="$LOGDIR/stdin-for-$testnum"; + + my %hash = getpartattr("client", "stdin"); + if($hash{'nonewline'}) { + # cut off the final newline from the final line of the stdin data + chomp($stdintest[$#stdintest]); + } + writearray($stdinfile, \@stdintest); $cmdargs .= " <$stdinfile"; |