Skip to content

Commit 9c889eb

Browse files
committed
tests: Use --args multiple times
The code supports this today, so test it. xref #426 where I thought it didn't.
1 parent dc4c266 commit 9c889eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test-run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ for die_with_parent_argv in "--die-with-parent" "--die-with-parent --unshare-pid
280280
done
281281

282282
printf '%s--dir\0/tmp/hello/world\0' '' > test.args
283-
$RUN --args 3 test -d /tmp/hello/world 3<test.args
283+
printf '%s--dir\0/tmp/hello/world2\0' '' > test.args2
284+
printf '%s--dir\0/tmp/hello/world3\0' '' > test.args3
285+
$RUN --args 3 --args 4 --args 5 /bin/sh -c 'test -d /tmp/hello/world && test -d /tmp/hello/world2 && test -d /tmp/hello/world3' 3<test.args 4<test.args2 5<test.args3
284286
echo "ok - we can parse arguments from a fd"
285287

286288
mkdir bin

0 commit comments

Comments
 (0)