Skip to content

Commit a7c070a

Browse files
authored
Merge pull request #428 from cgwalters/test-multi-args
tests: Use --args multiple times
2 parents 7d4f226 + 9c889eb commit a7c070a

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)