t5541: move run_with_cmdline_limit to test-lib.sh
We use this to test http pushing with a restricted commandline. Other scripts (like t5551, which does http fetching) will want to use it, too. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Mar 13, 2015 at 00:53 UTC
9a308de37c485068d6470d4c51e231a36e651e98
2 files changed
+6
-6
t/t5541-http-push-smart.sh
-6
@@ -324,12 +324,6 @@ test_expect_success 'push into half-auth-complete requires password' '
324
test_cmp expect actual
325
'
326
327
-run_with_limited_cmdline () {
328
- (ulimit -s 128 && "$@")
329
-}
330
-
331
-test_lazy_prereq CMDLINE_LIMIT 'run_with_limited_cmdline true'
332
-
327
test_expect_success CMDLINE_LIMIT 'push 2000 tags over http' '
328
sha1=$(git rev-parse HEAD) &&
329
test_seq 2000 |
t/test-lib.sh
+6
@@ -1062,3 +1062,9 @@ test_lazy_prereq UNZIP '
1062
"$GIT_UNZIP" -v
1063
test $? -ne 127
1064
'
1065
+
1066
+run_with_limited_cmdline () {
1067
+ (ulimit -s 128 && "$@")
1068
+}
1069
+
1070
+test_lazy_prereq CMDLINE_LIMIT 'run_with_limited_cmdline true'