]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test-wrap-argv: use map and join instead of a for cycle
authorJán Tomko <jtomko@redhat.com>
Mon, 30 May 2016 16:59:42 +0000 (18:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 21 Jun 2016 16:13:07 +0000 (18:13 +0200)
commitc8da1cbf13a782854e780e5449f6758aea15180d
treebf7215e9d5f8e018a31bfd38ccdd56efaab70be7
parent2f071f1fca3d1c5344cfcb56a55b7599d94de51f
test-wrap-argv: use map and join instead of a for cycle

We have a list of parameters in @args, that need to be rewrapped
and separated by a space and escaped newline: " \\\n", with the
exception of the last one, which only needs a newline.

Instead of a for cycle, rewrap the individual arguments using map,
and interleave them with escaped newlines by using join.
tests/test-wrap-argv.pl